Merge pull request #21238 from yongtang/21211-TestRestartStoppedContainer

Fix flaky test of TestRestartStoppedContainer (#21211).
This commit is contained in:
Sebastiaan van Stijn 2016-03-18 17:01:30 +01:00
commit 6eaf4434ee

View file

@ -20,6 +20,10 @@ func (s *DockerSuite) TestRestartStoppedContainer(c *check.C) {
dockerCmd(c, "restart", cleanedContainerID)
// Wait until the container has stopped
err = waitInspect(cleanedContainerID, "{{.State.Running}}", "false", 20*time.Second)
c.Assert(err, checker.IsNil)
out, _ = dockerCmd(c, "logs", cleanedContainerID)
c.Assert(out, checker.Equals, "foobar\nfoobar\n")
}