From b89df417183a7d2edc5810f6291d0402462b4b2e Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 18 Nov 2021 17:26:25 +0100 Subject: [PATCH] REGTESTS: make tcp-check_min-recv fail fast 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reg-tests/checks/tcp-check_min-recv.vtc b/reg-tests/checks/tcp-check_min-recv.vtc index 370c9468dc..ab2d11ced9 100644 --- a/reg-tests/checks/tcp-check_min-recv.vtc +++ b/reg-tests/checks/tcp-check_min-recv.vtc @@ -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