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.
This commit is contained in:
Willy Tarreau 2020-09-29 09:58:23 +02:00
parent 20b0fed28c
commit 2aa3dd2b43

View 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