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
This commit is contained in:
Daniel Stenberg 2020-04-20 10:21:57 +02:00
parent 093a9e0014
commit 018dd775c8
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
8 changed files with 9 additions and 6 deletions

View file

@ -23,7 +23,7 @@ http
Attempt connect to non-listening SOCKS5 proxy
</name>
<command>
--socks5 %HOSTIP:2 http://%HOSTIP:%HTTPPORT/705
--socks5 %HOSTIP:%NOLISTENPORT http://%HOSTIP:%HTTPPORT/705
</command>
<features>
proxy