tests: update regex check for fetch error in test-clonebundles.t
authorDenis Laxalde <denis@laxalde.org>
Thu, 22 Jun 2017 11:16:29 +0200
changeset 32993 d8b40230c8e8
parent 32992 816a4fa7d5f8
child 32994 9fda810cd0db
tests: update regex check for fetch error in test-clonebundles.t On some systems, e.g. Docker container, the actual error may be: error fetching bundle: [Errno 99] Cannot assign requested address Update the regex to handle this case.
tests/test-clonebundles.t
--- a/tests/test-clonebundles.t	Tue Jun 20 20:53:29 2017 -0700
+++ b/tests/test-clonebundles.t	Thu Jun 22 11:16:29 2017 +0200
@@ -62,7 +62,7 @@
   $ echo "http://localhost:$HGPORT1/bundle.hg" > server/.hg/clonebundles.manifest
   $ hg clone http://localhost:$HGPORT server-not-runner
   applying clone bundle from http://localhost:$HGPORT1/bundle.hg
-  error fetching bundle: (.* refused.*|Protocol not supported|Cannot assign requested address) (re)
+  error fetching bundle: (.* refused.*|Protocol not supported|(.* )?Cannot assign requested address) (re)
   abort: error applying bundle
   (if this error persists, consider contacting the server operator or disable clone bundles via "--config ui.clonebundles=false")
   [255]