Skip to content

Commit f66fe2c

Browse files
committed
Fix appveyor failure, messages differ by platform.
1 parent 4c0b239 commit f66fe2c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/testsuite/build_auth.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,10 @@ fn http_auth_offered() {
103103
")
104104
.build();
105105

106+
// This is a "contains" check because the last error differs by platform,
107+
// may span multiple lines, and isn't relevant to this test.
106108
assert_that(p.cargo("build"),
107-
execs().with_status(101).with_stderr(&format!("\
109+
execs().with_status(101).with_stderr_contains(&format!("\
108110
[UPDATING] git repository `http://{addr}/foo/bar`
109111
[ERROR] failed to load source for a dependency on `bar`
110112
@@ -119,8 +121,6 @@ Caused by:
119121
attempted to find username/password via `credential.helper`, but [..]
120122
121123
Caused by:
122-
curl error: Failed to connect to 127.0.0.1 port [..]: Connection refused
123-
; class=Net (12)
124124
",
125125
addr = addr)));
126126

0 commit comments

Comments
 (0)