[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 08/18: test1456: remove the use of a fixed local port
From: |
gnunet |
Subject: |
[gnurl] 08/18: test1456: remove the use of a fixed local port |
Date: |
Fri, 20 Dec 2019 14:49:10 +0100 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit fba830133899ae50071b5fc9359a621694d24748
Author: Daniel Stenberg <address@hidden>
AuthorDate: Wed Dec 18 14:38:35 2019 +0100
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
---
tests/data/test1456 | 10 ++++++++--
1 file 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: */*
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [gnurl] branch master updated (486ada36f -> 71b588320), gnunet, 2019/12/20
- [gnurl] 03/18: CURLOPT_URL.3: "curl supports SMB version 1 (only)", gnunet, 2019/12/20
- [gnurl] 01/18: HISTORY: the SMB(S) support landed in 2014, gnunet, 2019/12/20
- [gnurl] 10/18: curl.h: add two defines for the "pre ISO C" case, gnunet, 2019/12/20
- [gnurl] 02/18: test1270: a basic -w redirect_url test, gnunet, 2019/12/20
- [gnurl] 06/18: strerror: Fix compiler warning "empty expression", gnunet, 2019/12/20
- [gnurl] 07/18: CURLOPT_QUOTE.3: fix typos, gnunet, 2019/12/20
- [gnurl] 08/18: test1456: remove the use of a fixed local port,
gnunet <=
- [gnurl] 05/18: curl/parseconfig: use curl_free() to free memory allocated by libcurl, gnunet, 2019/12/20
- [gnurl] 04/18: curl/parseconfig: fix mem-leak, gnunet, 2019/12/20
- [gnurl] 09/18: create_conn: prefer multiplexing to using new connections, gnunet, 2019/12/20
- [gnurl] 16/18: HISTORY: OSS-Fuzz started fuzzing libcurl in 2017, gnunet, 2019/12/20
- [gnurl] 11/18: test165: set LC_ALL=en_US.UTF-8 too, gnunet, 2019/12/20
- [gnurl] 13/18: sws: search for "Testno:" header uncondtionally if no testno, gnunet, 2019/12/20
- [gnurl] 17/18: examples/url2file.c: corrected a comment, gnunet, 2019/12/20
- [gnurl] 12/18: tests: set LC_ALL in more tests, gnunet, 2019/12/20
- [gnurl] 14/18: ngtcp2: Support the latest update key callback type, gnunet, 2019/12/20
- [gnurl] 15/18: RELEASE-NOTES: synced, gnunet, 2019/12/20