From: Eric Huss Date: Wed, 21 Feb 2018 16:52:24 +0000 (-0800) Subject: Fix appveyor failure, messages differ by platform. X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~2^2~86^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f66fe2c650973e15e5281a257a335ff0f21fbb18;p=cargo.git Fix appveyor failure, messages differ by platform. --- diff --git a/tests/testsuite/build_auth.rs b/tests/testsuite/build_auth.rs index 66b978eb4..83ae62c2b 100644 --- a/tests/testsuite/build_auth.rs +++ b/tests/testsuite/build_auth.rs @@ -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)));