mirror of https://github.com/docker/docs.git
Merge pull request #22619 from jterry75/master
Adds a correct error string for network validation
This commit is contained in:
commit
59db39c5c8
|
@ -4233,7 +4233,8 @@ func (s *DockerSuite) TestRunAttachFailedNoLeak(c *check.C) {
|
||||||
// TODO Windows Post TP5. Fix the error message string
|
// TODO Windows Post TP5. Fix the error message string
|
||||||
c.Assert(strings.Contains(string(out), "port is already allocated") ||
|
c.Assert(strings.Contains(string(out), "port is already allocated") ||
|
||||||
strings.Contains(string(out), "were not connected because a duplicate name exists") ||
|
strings.Contains(string(out), "were not connected because a duplicate name exists") ||
|
||||||
strings.Contains(string(out), "HNS failed with error : Failed to create endpoint"), checker.Equals, true, check.Commentf("Output: %s", out))
|
strings.Contains(string(out), "HNS failed with error : Failed to create endpoint") ||
|
||||||
|
strings.Contains(string(out), "HNS failed with error : The object already exists"), checker.Equals, true, check.Commentf("Output: %s", out))
|
||||||
dockerCmd(c, "rm", "-f", "test")
|
dockerCmd(c, "rm", "-f", "test")
|
||||||
|
|
||||||
// NGoroutines is not updated right away, so we need to wait before failing
|
// NGoroutines is not updated right away, so we need to wait before failing
|
||||||
|
|
Loading…
Reference in New Issue