Relax a few error messages from libgit2

They were tweaked a bit recently so let's enusre they're not too strict.
This commit is contained in:
Alex Crichton 2017-12-11 04:10:54 -08:00
parent 6fcfaaca33
commit 873f69c0b8
2 changed files with 4 additions and 4 deletions

View file

@ -389,7 +389,7 @@ Caused by:
failed to clone into: [..]
Caused by:
[[..]] 'file:///' is not a valid local file URI
[..]'file:///' is not a valid local file URI[..]
"));
}

View file

@ -166,14 +166,14 @@ Caused by:
{errmsg}
",
errmsg = if cfg!(windows) {
"[[..]] failed to send request: [..]\n"
"[..]failed to send request: [..]"
} else if cfg!(target_os = "macos") {
// OSX is difficult to tests as some builds may use
// Security.framework and others may use OpenSSL. In that case let's
// just not verify the error message here.
"[..]"
} else {
"[..] SSL error: [..]"
"[..]SSL error: [..]"
})));
t.join().ok().unwrap();
@ -207,7 +207,7 @@ fn ssh_something_happens() {
", addr = addr))
.with_stderr_contains("\
Caused by:
[[..]] failed to start SSH session: Failed getting banner
[..]failed to start SSH session: Failed getting banner[..]
"));
t.join().ok().unwrap();
}