mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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 <cpuguy83@gmail.com>
This commit is contained in:
parent
cc79c6c7da
commit
9e3193810d
1 changed files with 2 additions and 2 deletions
|
@ -59,9 +59,9 @@ func TestDaemonRestartKillContainers(t *testing.T) {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
var args []string
|
args := []string{"--iptables=false"}
|
||||||
if liveRestoreEnabled {
|
if liveRestoreEnabled {
|
||||||
args = []string{"--live-restore"}
|
args = append(args, "--live-restore")
|
||||||
}
|
}
|
||||||
|
|
||||||
d.StartWithBusybox(t, args...)
|
d.StartWithBusybox(t, args...)
|
||||||
|
|
Loading…
Reference in a new issue