From: Daniel Stenberg Date: Wed, 18 Dec 2019 13:38:35 +0000 (+0100) Subject: test1456: remove the use of a fixed local port X-Git-Tag: curl-7_68_0~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fba830133899ae50071b5fc9359a621694d24748;p=thirdparty%2Fcurl.git test1456: remove the use of a fixed local port Fixup the test to instead not compare the port number. It sometimes caused problems like this: "curl: (45) bind failed with errno 98: Address already in use" Closes #4733 --- diff --git a/tests/data/test1456 b/tests/data/test1456 index 27d63f5052..16a78b2af6 100644 --- a/tests/data/test1456 +++ b/tests/data/test1456 @@ -40,7 +40,7 @@ http-ipv6 HTTP-IPv6 GET with PROXY protocol --g "http://%HOST6IP:%HTTP6PORT/1456" --local-port 44444 --haproxy-protocol +-g "http://%HOST6IP:%HTTP6PORT/1456" --haproxy-protocol proxy @@ -53,8 +53,14 @@ proxy ^User-Agent: + +# Strip off the (random) local port number. This test used to use a fixed +# local port number that frequently causes the test to fail + +s/PROXY TCP6 ::1 ::1 (\d+) (\d+)/PROXY TCP6 ::1 ::1 $2/ + -PROXY TCP6 ::1 ::1 44444 %HTTP6PORT +PROXY TCP6 ::1 ::1 %HTTP6PORT GET /1456 HTTP/1.1 Host: %HOST6IP:%HTTP6PORT Accept: */*