Skip to content

Commit 9e31938

Browse files
committed
Fix race with concurrent daemon startup in tests
Using parallel tests is nice, however it can cause an issue with multiple daemons trying to make changes to iptables at the same time which causes flakey tests. This just disables iptables for the set of tests since it is not required. Signed-off-by: Brian Goff <[email protected]>
1 parent cc79c6c commit 9e31938

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

integration/container/restart_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ func TestDaemonRestartKillContainers(t *testing.T) {
5959
t.Fatal(err)
6060
}
6161

62-
var args []string
62+
args := []string{"--iptables=false"}
6363
if liveRestoreEnabled {
64-
args = []string{"--live-restore"}
64+
args = append(args, "--live-restore")
6565
}
6666

6767
d.StartWithBusybox(t, args...)

0 commit comments

Comments
 (0)