[master] 8a179e223 Fix c00042, jails do not have 127.0.0.1 as localhost.

Poul-Henning Kamp phk at FreeBSD.org
Mon Feb 27 08:42:09 UTC 2023


commit 8a179e223e8e9506040476a7f4109e9714f46bd5
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Feb 27 08:40:46 2023 +0000

    Fix c00042, jails do not have 127.0.0.1 as localhost.

diff --git a/bin/varnishtest/tests/c00042.vtc b/bin/varnishtest/tests/c00042.vtc
index b2a99dc97..6c9208284 100644
--- a/bin/varnishtest/tests/c00042.vtc
+++ b/bin/varnishtest/tests/c00042.vtc
@@ -65,19 +65,19 @@ client c1 {
 	txreq -url /s1/1
 	rxresp
 	expect resp.status == 200
-	expect resp.http.Authority == "127.0.0.1"
+	expect resp.http.Authority == "${s1_addr}"
 	expect resp.http.Server == "s1"
 
 	txreq -url /s2/1
 	rxresp
 	expect resp.status == 200
-	expect resp.http.Authority == "127.0.0.1"
+	expect resp.http.Authority == "${s2_addr}"
 	expect resp.http.Server == "s2"
 
 	txreq -url /s1/2
 	rxresp
 	expect resp.status == 200
-	expect resp.http.Authority == "127.0.0.1"
+	expect resp.http.Authority == "${s1_addr}"
 	expect resp.http.Server == "s1"
 } -run
 


More information about the varnish-commit mailing list