From 17a381db1263fbd01b0b9a7de2eece1f59f1c3ba Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 22 Sep 2026 20:08:44 +0000 Subject: [PATCH] REGTESTS: sample_fetches: check the rtt headers this test was filling Three of the four headers the test sets were never read back, so only bc_rtt was really checked. They are all matched against an integer now, which is all that can be asserted on a timing value. --- reg-tests/sample_fetches/tcpinfo_rtt.vtc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reg-tests/sample_fetches/tcpinfo_rtt.vtc b/reg-tests/sample_fetches/tcpinfo_rtt.vtc index cfab9c59a..1f7d883df 100644 --- a/reg-tests/sample_fetches/tcpinfo_rtt.vtc +++ b/reg-tests/sample_fetches/tcpinfo_rtt.vtc @@ -13,6 +13,7 @@ haproxy h1 -conf { .if feature(THREAD) thread-groups 1 .endif + chroot / defaults common mode http @@ -40,5 +41,8 @@ client c1 -connect ${h1_feh1_sock} { txreq -req GET -url / rxresp expect resp.status == 200 - expect resp.http.x-test2 ~ "[0-9]+" + expect resp.http.x-test1 ~ "^[0-9]+$" + expect resp.http.x-test2 ~ "^[0-9]+$" + expect resp.http.x-test3 ~ "^[0-9]+$" + expect resp.http.x-test4 ~ "^[0-9]+$" } -run \ No newline at end of file -- 2.47.3