Skip to content

Commit

Permalink
integration/TestContainerShmNoLeak: use --iptables=false
Browse files Browse the repository at this point in the history
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: eaa5192 ("Make container resource mounts unbindable")
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
  • Loading branch information
kolyshkin committed Mar 12, 2018
1 parent 241c904 commit c125e10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration/container/mounts_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit c125e10

Please sign in to comment.