From: Willy Tarreau Date: Tue, 22 Sep 2026 20:08:44 +0000 (+0000) Subject: REGTESTS: sample_fetches: check the rtt headers this test was filling X-Git-Tag: v3.5-dev8~22 X-Git-Url: https://git.kaiwu.me/?a=commitdiff_plain;h=17a381db1263fbd01b0b9a7de2eece1f59f1c3ba;p=haproxy.git 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. --- 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