mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-06 21:51:33 +00:00
Merge pull request #15412 from vdemeester/dont-sleep-too-much
time.Sleep in integration tests — comment and waitRun/waitInspect
This commit is contained in:
@@ -30,17 +30,13 @@ func (s *DockerSuite) TestPsListContainers(c *check.C) {
|
||||
fourthID := strings.TrimSpace(out)
|
||||
|
||||
// make sure the second is running
|
||||
if err := waitRun(secondID); err != nil {
|
||||
c.Fatalf("waiting for container failed: %v", err)
|
||||
}
|
||||
c.Assert(waitRun(secondID), check.IsNil)
|
||||
|
||||
// make sure third one is not running
|
||||
dockerCmd(c, "wait", thirdID)
|
||||
|
||||
// make sure the forth is running
|
||||
if err := waitRun(fourthID); err != nil {
|
||||
c.Fatalf("waiting for container failed: %v", err)
|
||||
}
|
||||
c.Assert(waitRun(fourthID), check.IsNil)
|
||||
|
||||
// all
|
||||
out, _ = dockerCmd(c, "ps", "-a")
|
||||
|
||||
Reference in New Issue
Block a user