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

@ -11,9 +11,7 @@ import (
func (s *DockerSuite) TestCliStatsNoStream(c *check.C) {
out, _ := dockerCmd(c, "run", "-d", "busybox", "top")
id := strings.TrimSpace(out)
if err := waitRun(id); err != nil {
c.Fatalf("error waiting for container to start: %v", err)
}
c.Assert(waitRun(id), check.IsNil)
statsCmd := exec.Command(dockerBinary, "stats", "--no-stream", id)
chErr := make(chan error)