From: Amaury Denoyelle Date: Tue, 16 Feb 2021 16:08:32 +0000 (+0100) Subject: REGTESTS: fix http_reuse_conn_hash proxy test X-Git-Tag: v2.4-dev9~41 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ffcd290dddd04603871e63718fca3b4db3f4fa82;p=thirdparty%2Fhaproxy.git REGTESTS: fix http_reuse_conn_hash proxy test Define pool-low-conn to 2 to force to have at least 2 idle connections on the server side for the purpose of the test. --- diff --git a/reg-tests/connection/http_reuse_conn_hash.vtc b/reg-tests/connection/http_reuse_conn_hash.vtc index 58118d27dc..f6c8765e1d 100644 --- a/reg-tests/connection/http_reuse_conn_hash.vtc +++ b/reg-tests/connection/http_reuse_conn_hash.vtc @@ -26,7 +26,7 @@ haproxy h1 -conf { listen sender-proxy bind "fd@${feS_proxy}" accept-proxy http-reuse always - server srv2 ${h1_feR_proxy_addr}:${h1_feR_proxy_port} send-proxy + server srv2 ${h1_feR_proxy_addr}:${h1_feR_proxy_port} send-proxy pool-low-conn 2 listen receiver bind "fd@${feR_ssl}" ssl crt ${testdir}/common.pem @@ -146,9 +146,8 @@ client c_proxy -connect ${h1_feS_proxy_sock} -proxy1 "127.0.0.1:50000 ${h1_feS_p expect resp.status == 200 expect resp.http.http_first_request == "0" - # TODO this test does not pass on the CI - #txreq - #rxresp - #expect resp.status == 200 - #expect resp.http.http_first_request == "0" + txreq + rxresp + expect resp.status == 200 + expect resp.http.http_first_request == "0" } -run