Patchwork [4,of,4] test-http-proxy: add the Windows variant of "connection refused"

login
register
mail settings
Submitter Matt Harbison
Date April 9, 2017, 2:37 a.m.
Message ID <42c7df6da065e310c568.1491705468@Envy>
Download mbox | patch
Permalink /patch/20033/
State Accepted
Headers show

Comments

Matt Harbison - April 9, 2017, 2:37 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1491678405 14400
#      Sat Apr 08 15:06:45 2017 -0400
# Node ID 42c7df6da065e310c5685fbba2799ffe77d73afd
# Parent  651cf90e65f6c5f5717caa9779f268319e2bc676
test-http-proxy: add the Windows variant of "connection refused"

The full error is "No connection could be made because the target machine
actively refused it".

Patch

diff --git a/tests/test-http-proxy.t b/tests/test-http-proxy.t
--- a/tests/test-http-proxy.t
+++ b/tests/test-http-proxy.t
@@ -87,7 +87,7 @@ 
 misconfigured hosts)
 
   $ http_proxy=localhost:$HGPORT2 hg clone --config http_proxy.always=True http://localhost:$HGPORT/ f
-  abort: error: (Connection refused|Protocol not supported) (re)
+  abort: error: (Connection refused|Protocol not supported|.* actively refused it) (re)
   [255]
 
 do not use the proxy if it is in the no list