Skip to content

Commit

Permalink
Fix appveyor failure, messages differ by platform.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Feb 21, 2018
1 parent 4c0b239 commit f66fe2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/testsuite/build_auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand All @@ -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)));

Expand Down

0 comments on commit f66fe2c

Please sign in to comment.