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:
Vincent Demeester
2015-08-11 09:41:11 +02:00
parent b3cd3aa03a
commit 22da8315f6
17 changed files with 42 additions and 93 deletions

View File

@ -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")