summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilly Tarreau <w@1wt.eu>2021-11-18 17:26:25 +0100
committerWilly Tarreau <w@1wt.eu>2021-11-18 17:56:00 +0100
commitb89df417183a7d2edc5810f6291d0402462b4b2e (patch)
treef9b7b61321d4ea36d5a6ebe7b60645184149e18b
parent419c11728d3867bfe04bc1164ef9f874eec4c78b (diff)
downloadhaproxy-b89df417183a7d2edc5810f6291d0402462b4b2e.tar.gz
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.
-rw-r--r--reg-tests/checks/tcp-check_min-recv.vtc3
1 files changed, 3 insertions, 0 deletions
diff --git a/reg-tests/checks/tcp-check_min-recv.vtc b/reg-tests/checks/tcp-check_min-recv.vtc
index 370c9468d..ab2d11ced 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