Merge pull request #21238 from yongtang/21211-TestRestartStoppedContainer
Fix flaky test of TestRestartStoppedContainer (#21211).
This commit is contained in:
commit
6eaf4434ee
1 changed files with 4 additions and 0 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue