changeset 52006:989967d2f994

tests: stabilize `test-http-bad-server.t` on macOS I'm not sure what's going on here, because I got one test run where this worked, but two where it gave this error instead. It's connection related as the comment says it should be, so good enough.
author Matt Harbison <matt_harbison@yahoo.com>
date Wed, 09 Oct 2024 20:09:33 -0400
parents 028bac79cf34
children 521df44118a8
files tests/test-http-bad-server.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-http-bad-server.t	Wed Oct 09 13:55:04 2024 -0400
+++ b/tests/test-http-bad-server.t	Wed Oct 09 20:09:33 2024 -0400
@@ -42,7 +42,7 @@
   $ cat hg.pid > $DAEMON_PIDS
 
   $ hg clone http://localhost:$HGPORT/ clone
-  abort: error: (\$ECONNRESET\$|\$EADDRNOTAVAIL\$) (re)
+  abort: error: (\$ECONNRESET\$|\$EADDRNOTAVAIL\$|\$ECONNREFUSED\$) (re)
   [100]
 
 (The server exits on its own, but there is a race between that and starting a new server.