Browse Source

Merge pull request #21257 from yongtang/21247-TestRunAttachFailedNoLeak

Fix flaky test TestRunAttachFailedNoLeak in #21247.
Vincent Demeester 9 years ago
parent
commit
cf9d0c8ae2
1 changed files with 3 additions and 0 deletions
  1. 3 0
      integration-cli/docker_cli_run_test.go

+ 3 - 0
integration-cli/docker_cli_run_test.go

@@ -4226,6 +4226,9 @@ func (s *DockerSuite) TestRunAttachFailedNoLeak(c *check.C) {
 
 	runSleepingContainer(c, "--name=test", "-p", "8000:8000")
 
+	// Wait until container is fully up and running
+	c.Assert(waitRun("test"), check.IsNil)
+
 	out, _, err := dockerCmdWithError("run", "-p", "8000:8000", "busybox", "true")
 	c.Assert(err, checker.NotNil)
 	// check for windows error as well