1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #20246 from tophj-ibm/19368-fix-flaky-network-test

Fix flaky test, TestDockerNetworkHostModeUngracefulDaemonRestart
This commit is contained in:
David Calavera 2016-02-11 15:50:40 -08:00
commit 46ec01bd12

View file

@ -1012,6 +1012,10 @@ func (s *DockerNetworkSuite) TestDockerNetworkHostModeUngracefulDaemonRestart(c
cName := fmt.Sprintf("hostc-%d", i)
out, err := s.d.Cmd("run", "-d", "--name", cName, "--net=host", "--restart=always", "busybox", "top")
c.Assert(err, checker.IsNil, check.Commentf(out))
// verfiy container has finished starting before killing daemon
err = s.d.waitRun(fmt.Sprintf("hostc-%d", i))
c.Assert(err, checker.IsNil)
}
// Kill daemon ungracefully and restart