]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTEST: fix host part in balance-uri-path-only.vtc
authorWilly Tarreau <w@1wt.eu>
Tue, 29 Sep 2020 07:58:23 +0000 (09:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 29 Sep 2020 08:52:27 +0000 (10:52 +0200)
We used to set it to ${h1_px_addr} but it randomly fails on certain
hosts (FreeBSD and OSX) where the address is surprisingly set to "::1"
while the Host field contains 127.0.0.1 (hence two different address
families). While this is likely a minor issue in vtest, we don't need
to depend on this and can easily hard-code 127.0.0.1 which is already
used in other tests.

reg-tests/balance/balance-uri-path-only.vtc

index 735c036c8e0b6ce07c131c0ec0ebb7c666be1979..1a66114d4b513ca878b165c2fae69eb5c5741f28 100644 (file)
@@ -40,7 +40,7 @@ haproxy h1 -arg "-L A" -conf {
 } -start
 
 client c1 -connect ${h1_px_sock} {
-    txreq -url "http://${h1_px_addr}/url1"
+    txreq -url "http://127.0.0.1/url1"
     rxresp
     expect resp.status == 200
     expect resp.http.Server ~ s2
@@ -54,7 +54,7 @@ client c2 -connect ${h1_px_sock} {
 } -run
 
 client c3 -connect ${h1_px_sock} {
-    txreq -url "http://${h1_px_addr}/url2"
+    txreq -url "http://127.0.0.1/url2"
     rxresp
     expect resp.status == 200
     expect resp.http.Server ~ s3