Fix appveyor failure, messages differ by platform.
authorEric Huss <eric@huss.org>
Wed, 21 Feb 2018 16:52:24 +0000 (08:52 -0800)
committerEric Huss <eric@huss.org>
Wed, 21 Feb 2018 22:33:20 +0000 (14:33 -0800)
tests/testsuite/build_auth.rs

index 66b978eb4cdb8438158f1f079810a26b4b0d552c..83ae62c2ba6acc9227f3f1a5dbc092f5dda78305 100644 (file)
@@ -103,8 +103,10 @@ fn http_auth_offered() {
         ")
         .build();
 
+    // This is a "contains" check because the last error differs by platform,
+    // may span multiple lines, and isn't relevant to this test.
     assert_that(p.cargo("build"),
-                execs().with_status(101).with_stderr(&format!("\
+                execs().with_status(101).with_stderr_contains(&format!("\
 [UPDATING] git repository `http://{addr}/foo/bar`
 [ERROR] failed to load source for a dependency on `bar`
 
@@ -119,8 +121,6 @@ Caused by:
 attempted to find username/password via `credential.helper`, but [..]
 
 Caused by:
-  curl error: Failed to connect to 127.0.0.1 port [..]: Connection refused
-; class=Net (12)
 ",
         addr = addr)));