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:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user