Skip to content

Commit f534844

Browse files
committed
Auto merge of #8212 - kornelski:testfix, r=alexcrichton
Avoid testing git-specific error messages #8166
2 parents d7966eb + 5babb2a commit f534844

File tree

1 file changed

+2
-25
lines changed

1 file changed

+2
-25
lines changed

tests/testsuite/git_auth.rs

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -320,30 +320,7 @@ Caused by:
320320

321321
p.cargo("build -v")
322322
.with_status(101)
323-
.with_stderr(
324-
"\
325-
[UPDATING] git repository `ssh://needs-proxy.invalid/git`
326-
[RUNNING] `git fetch[..]
327-
[ERROR] failed to get `foo` as a dependency of package `foo v0.0.0 [..]`
328-
329-
Caused by:
330-
failed to load source for dependency `foo`
331-
332-
Caused by:
333-
Unable to update ssh://needs-proxy.invalid/git
334-
335-
Caused by:
336-
failed to fetch into: [..]
337-
338-
Caused by:
339-
[..]process didn't exit successfully[..]
340-
--- stderr
341-
ssh: Could not resolve hostname[..]
342-
fatal: [..]
343-
344-
Please make sure you have the correct access rights
345-
and the repository exists.
346-
[..]",
347-
)
323+
.with_stderr_contains("[..]Unable to update[..]")
324+
.with_stderr_does_not_contain("[..]try enabling `git-fetch-with-cli`[..]")
348325
.run();
349326
}

0 commit comments

Comments
 (0)