From 2aa3dd2b4318eddf54e3958e7cd5751b0e25db74 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 29 Sep 2020 09:58:23 +0200 Subject: [PATCH] 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. --- reg-tests/balance/balance-uri-path-only.vtc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reg-tests/balance/balance-uri-path-only.vtc b/reg-tests/balance/balance-uri-path-only.vtc index 735c036c8..1a66114d4 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