]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTESTS: make tcp-check_min-recv fail fast
authorWilly Tarreau <w@1wt.eu>
Thu, 18 Nov 2021 16:26:25 +0000 (17:26 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 18 Nov 2021 16:56:00 +0000 (17:56 +0100)
This test was dependent on the check/server timeout to detect a failure,
which is not logical since we also use that one as an upper bound for
success in the second test, and that needlessly extends the test duration.
Let's make sur the timeout strikes immediately with only 1 ms timeout. Now
the total tests time is around 5.3-5.4s down from 8.7s in dev14. There is
still quite some room for improvement in the peers tests which all wait 2s
before starting but this will be more complicated.

reg-tests/checks/tcp-check_min-recv.vtc

index 370c9468dc10a429a72c177eac8ba178585dd6af..ab2d11ced984c44b0242ad9fc41921ee8d56605c 100644 (file)
@@ -39,6 +39,9 @@ haproxy h1 -conf {
     timeout client 5s
 
   backend be1
+    # must fail fast
+    timeout check 1
+    timeout server 1
     log ${S1_addr}:${S1_port} len 2048 local0
     option tcp-check
     option log-health-checks