Skip to content

Commit

Permalink
tests: Fix tests to newContainer parameter changes
Browse files Browse the repository at this point in the history
Have changed newContainer's contConfig parameter from value to reference
due to sandbox's ContainerConfig and Container's ContainerConfig not sync.

Fixes: kata-containers#2129

Signed-off-by: Wang Liang <wangliangzz@inspur.com>
  • Loading branch information
Wang Liang committed Oct 12, 2019
1 parent b6f9f26 commit 45a7064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtcontainers/sandbox_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ func TestSandboxGetContainer(t *testing.T) {

contID := "999"
contConfig := newTestContainerConfigNoop(contID)
nc, err := newContainer(p, contConfig)
nc, err := newContainer(p, &contConfig)
assert.NoError(err)

err = p.addContainer(nc)
Expand Down

0 comments on commit 45a7064

Please sign in to comment.