From: Willy Tarreau Date: Tue, 29 Sep 2020 07:58:23 +0000 (+0200) Subject: REGTEST: fix host part in balance-uri-path-only.vtc X-Git-Tag: v2.3-dev6~136 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2aa3dd2b4318eddf54e3958e7cd5751b0e25db74;p=thirdparty%2Fhaproxy.git REGTEST: fix host part in balance-uri-path-only.vtc 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. --- diff --git a/reg-tests/balance/balance-uri-path-only.vtc b/reg-tests/balance/balance-uri-path-only.vtc index 735c036c8e..1a66114d4b 100644 --- a/reg-tests/balance/balance-uri-path-only.vtc +++ b/reg-tests/balance/balance-uri-path-only.vtc @@ -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