summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-12-18 14:38:35 +0100
committerDaniel Stenberg <daniel@haxx.se>2019-12-18 14:38:35 +0100
commite3e874324016c566f9feb79f1a203127b286b6cd (patch)
tree512bd9ba5d1a322fbfa989adfadd9456ffb0bbfd
parent14f8b6e69e97e60f43c3188d2e22c10f05554a10 (diff)
downloadcurl-bagder/test1456.tar.gz
test1456: remove the use of a fixed local portbagder/test1456
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"
-rw-r--r--tests/data/test145610
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/data/test1456 b/tests/data/test1456
index 27d63f505..16a78b2af 100644
--- a/tests/data/test1456
+++ b/tests/data/test1456
@@ -40,7 +40,7 @@ http-ipv6
HTTP-IPv6 GET with PROXY protocol
</name>
<command>
--g "http://%HOST6IP:%HTTP6PORT/1456" --local-port 44444 --haproxy-protocol
+-g "http://%HOST6IP:%HTTP6PORT/1456" --haproxy-protocol
</command>
<features>
proxy
@@ -53,8 +53,14 @@ proxy
<strip>
^User-Agent:
</strip>
+
+# Strip off the (random) local port number. This test used to use a fixed
+# local port number that frequently causes the test to fail
+<strippart>
+s/PROXY TCP6 ::1 ::1 (\d+) (\d+)/PROXY TCP6 ::1 ::1 $2/
+</strippart>
<protocol>
-PROXY TCP6 ::1 ::1 44444 %HTTP6PORT
+PROXY TCP6 ::1 ::1 %HTTP6PORT
GET /1456 HTTP/1.1
Host: %HOST6IP:%HTTP6PORT
Accept: */*