Merge pull request #21257 from yongtang/21247-TestRunAttachFailedNoLeak
Fix flaky test TestRunAttachFailedNoLeak in #21247.
This commit is contained in:
commit
cf9d0c8ae2
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue