Remove/Comment time.Sleep in integration tests
Remove what seems unnecessary time.Sleep (1 second even) and comment the ones that seemed necessary. Signed-off-by: Vincent Demeester <vincent@sbr.pm> Upstream-commit: 799d9605d6d37a0f5c559b0325d924ad183ff4ee Component: engine
This commit is contained in:
@ -27,17 +27,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