From 018dd775c868a53c15fdaba7c67aaae6c5fd35c1 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 20 Apr 2020 10:21:57 +0200 Subject: tests: add %NOLISTENPORT and use it The purpose with this variable is to provide a port number that is reasonably likely to not have a listener on the local host so that tests can try connect failures against it. It uses port 47 - "reserved" according to IANA. Updated six tests to use it instead of the previous different ports. Assisted-by: Emil Engler Closes #5270 --- tests/data/test704 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/data/test704') diff --git a/tests/data/test704 b/tests/data/test704 index 7f891fa95..9e821c608 100644 --- a/tests/data/test704 +++ b/tests/data/test704 @@ -23,7 +23,7 @@ http Attempt connect to non-listening SOCKS4 proxy ---socks4 %HOSTIP:2 http://%HOSTIP:%HTTPPORT/704 +--socks4 %HOSTIP:%NOLISTENPORT http://%HOSTIP:%HTTPPORT/704 proxy -- cgit v1.2.3