]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTESTS: fix http_reuse_conn_hash proxy test
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 16 Feb 2021 16:08:32 +0000 (17:08 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 17 Feb 2021 08:11:52 +0000 (09:11 +0100)
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.

reg-tests/connection/http_reuse_conn_hash.vtc

index 58118d27dc0f9efcdb908c39fbfcb8dc03db81af..f6c8765e1d6dc39d222f87fa34d83124d349b39c 100644 (file)
@@ -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