diff --git a/integration-cli/docker_cli_logs_test.go b/integration-cli/docker_cli_logs_test.go index 7747335132..f92dd0e0a1 100644 --- a/integration-cli/docker_cli_logs_test.go +++ b/integration-cli/docker_cli_logs_test.go @@ -436,9 +436,11 @@ func (s *DockerSuite) TestLogsFollowGoroutinesWithStdout(c *check.C) { for { select { case <-t: - c.Assert(nroutines, check.Equals, getNGoroutines()) + if n := getNGoroutines(); n > nroutines { + c.Fatalf("leaked goroutines: expected less than or equal to %d, got: %d", nroutines, n) + } default: - if nroutines == getNGoroutines() { + if n := getNGoroutines(); n <= nroutines { return } time.Sleep(200 * time.Millisecond)