Explorar o código

integration/TestContainerShmNoLeak: use --iptables=false

As mentioned in commit 9e31938, test cases that use t.Parallel()
and start a docker daemon might step on each other toes as they
try to configure iptables during startup, resulting in flaky tests.

To avoid this, --iptables=false should be used while starting daemon.

Fixes: eaa5192856c1 ("Make container resource mounts unbindable")
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Kir Kolyshkin %!s(int64=7) %!d(string=hai) anos
pai
achega
c125e10a04
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      integration/container/mounts_linux_test.go

+ 1 - 1
integration/container/mounts_linux_test.go

@@ -30,7 +30,7 @@ func TestContainerShmNoLeak(t *testing.T) {
 	if err != nil {
 		t.Fatal(err)
 	}
-	d.StartWithBusybox(t)
+	d.StartWithBusybox(t, "--iptables=false")
 	defer d.Stop(t)
 
 	ctx := context.Background()