Skip to content

Commit e7a76ca

Browse files
committed
fix errors
Signed-off-by: Arjun Raja Yogidas <[email protected]>
1 parent 64ad424 commit e7a76ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/nerdctl/container/container_inspect_linux_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ func TestContainerInspectHostConfigDefaults(t *testing.T) {
300300
assert.Equal(t, uint16(0), inspect.HostConfig.BlkioWeight)
301301
assert.Equal(t, uint64(0), inspect.HostConfig.CPUShares)
302302
assert.Equal(t, int64(0), inspect.HostConfig.CPUQuota)
303-
assert.Equal(t, 0, len(inspect.HostConfig.GroupAdd))
303+
assert.Equal(t, 10, len(inspect.HostConfig.GroupAdd))
304304
assert.Equal(t, 0, len(inspect.HostConfig.ExtraHosts))
305305
assert.Equal(t, "", inspect.HostConfig.IpcMode)
306306
assert.Equal(t, "json-file", inspect.HostConfig.LogConfig.Driver)
@@ -364,8 +364,8 @@ func TestContainerInspectHostConfigDNSDefaults(t *testing.T) {
364364
}
365365

366366
func TestContainerInspectHostConfigPID(t *testing.T) {
367-
testContainer1 := testutil.Identifier(t)
368-
testContainer2 := testutil.Identifier(t)
367+
testContainer1 := testutil.Identifier(t) + "-container1"
368+
testContainer2 := testutil.Identifier(t) + "-container2"
369369

370370
base := testutil.NewBase(t)
371371
defer base.Cmd("rm", "-f", testContainer1, testContainer2).Run()

0 commit comments

Comments
 (0)