Merge pull request #21257 from yongtang/21247-TestRunAttachFailedNoLeak

Fix flaky test TestRunAttachFailedNoLeak in #21247.
This commit is contained in:
Vincent Demeester 2016-03-17 13:47:40 +01:00
commit cf9d0c8ae2

View file

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