diff tests/test-lfs-serve-access.t @ 51942:73a43fe3e6fd

tests: use pattern matching to mask `ECONNREFUSED` messages The second and third one of these in `test-http-proxy.t` was failing on Windows. The others were found by grep and by failed tests when output was matched and an attempt was made to emit the mask pattern. The first clonebundles failure on Windows emitted: error fetching bundle: [WinError 10061] $ECONNREFUSED$ We should probably stringify that better to get rid of the "[WinError 10061]" part.
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 01 Oct 2024 21:34:44 -0400
parents 7e5be4a7cda7
children
line wrap: on
line diff
--- a/tests/test-lfs-serve-access.t	Sat Oct 05 17:32:26 2024 -0400
+++ b/tests/test-lfs-serve-access.t	Tue Oct 01 21:34:44 2024 -0400
@@ -83,7 +83,7 @@
   [50]
 
   $ hg -R httpclone update default --config lfs.url=http://localhost:$HGPORT2/missing
-  abort: LFS error: *onnection *refused* (glob) (?)
+  abort: LFS error: $ECONNREFUSED$ (?)
   abort: LFS error: $EADDRNOTAVAIL$ (glob) (?)
   abort: LFS error: No route to host (?)
   (the "lfs.url" config may be used to override http://localhost:$HGPORT2/missing)