tests/test-https.t
branchstable
changeset 49277 51b07ac1991c
parent 45915 8f50dc096cf4
child 49279 127d33e63d1a
--- a/tests/test-https.t	Fri Jun 03 17:18:46 2022 +0200
+++ b/tests/test-https.t	Sat Jun 04 02:39:38 2022 +0200
@@ -490,6 +490,13 @@
   abort: error: *certificate verify failed* (glob)
   [100]
 
+Test when proxy can't connect to server
+
+  $ http_proxy=http://localhost:$HGPORT1/ hg -R copy-pull pull --insecure https://localhost:0/
+  pulling from https://localhost:0/
+  abort: error: Tunnel connection failed: 404 Connection refused
+  [100]
+
 
   $ killdaemons.py hg0.pid