Relax a few error messages from libgit2
authorAlex Crichton <alex@alexcrichton.com>
Mon, 11 Dec 2017 12:10:54 +0000 (04:10 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 12 Dec 2017 04:10:23 +0000 (20:10 -0800)
They were tweaked a bit recently so let's enusre they're not too strict.

tests/bad-config.rs
tests/build-auth.rs

index 1d8c2fe211cf4bc3d34e9edc327543f215940835..87717578c2a791087f1229a03c34c3c50afa60e9 100644 (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[..]
 "));
 }
 
index 064fce4fdbd20f56fedf7e2acef2f70380f3eba4..5420de7bca38d32b4631d5c3bf5035f31a4580ce 100644 (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();
 }