changeset 30275:280528245ecf

tests: relax "Connection refused" match We already had the match relaxed on Windows, but on Google Compute Engine VMs I'm seeing "Network is unreachable" instead of "Connection refused". At this point, just give up and make sure we get an error back.
author Augie Fackler <augie@google.com>
date Tue, 12 Jul 2016 11:20:30 -0400 (2016-07-12)
parents e5b4d79a9140
children bd18c2178fac
files tests/test-bad-pull.t tests/test-static-http.t
diffstat 2 files changed, 0 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-bad-pull.t
+++ b/tests/test-bad-pull.t
@@ -1,14 +1,8 @@
 #require serve killdaemons
 
-#if windows
   $ hg clone http://localhost:$HGPORT/ copy
   abort: * (glob)
   [255]
-#else
-  $ hg clone http://localhost:$HGPORT/ copy
-  abort: error: Connection refused
-  [255]
-#endif
 
   $ test -d copy
   [1]
--- a/tests/test-static-http.t
+++ b/tests/test-static-http.t
@@ -1,14 +1,8 @@
 #require killdaemons
 
-#if windows
   $ hg clone http://localhost:$HGPORT/ copy
   abort: * (glob)
   [255]
-#else
-  $ hg clone http://localhost:$HGPORT/ copy
-  abort: error: Connection refused
-  [255]
-#endif
   $ test -d copy
   [1]