Browse code

Adds a correct error string for network validation

Fixes the negative networking test to include the new error string
from recent Windows builds.

Signed-off-by: Justin Terry <juterry@microsoft.com>

Justin Terry authored on 2016/05/10 08:35:35
Showing 1 changed files
... ...
@@ -4233,7 +4233,8 @@ func (s *DockerSuite) TestRunAttachFailedNoLeak(c *check.C) {
4233 4233
 	// TODO Windows Post TP5. Fix the error message string
4234 4234
 	c.Assert(strings.Contains(string(out), "port is already allocated") ||
4235 4235
 		strings.Contains(string(out), "were not connected because a duplicate name exists") ||
4236
-		strings.Contains(string(out), "HNS failed with error : Failed to create endpoint"), checker.Equals, true, check.Commentf("Output: %s", out))
4236
+		strings.Contains(string(out), "HNS failed with error : Failed to create endpoint") ||
4237
+		strings.Contains(string(out), "HNS failed with error : The object already exists"), checker.Equals, true, check.Commentf("Output: %s", out))
4237 4238
 	dockerCmd(c, "rm", "-f", "test")
4238 4239
 
4239 4240
 	// NGoroutines is not updated right away, so we need to wait before failing