]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTEST: make the tls_health_checks test much faster
authorWilly Tarreau <w@1wt.eu>
Tue, 7 May 2019 05:26:08 +0000 (07:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 7 May 2019 05:29:33 +0000 (07:29 +0200)
This test relies on a server timeout and was using the default 2s check
interval with a full 1s server timeout, thus adding a whole second to the
test series by itself. Let's shrink the server timeout to 20ms which is
way enough to properly trigger a timeout, and set the check interval to
the double of this, or 40ms.

reg-tests/checks/tls_health_checks.vtc

index 87cc570563dacc62d49cca0039900b2da45129a3..3a576d7845c4793f1764a9d2d5220ce046687b5e 100644 (file)
@@ -33,9 +33,9 @@ haproxy h1 -conf {
 
     defaults
         mode http
-        timeout client 1s
-        timeout server 1s
-        timeout connect 1s
+        timeout client 20
+        timeout server 20
+        timeout connect 20
 
     backend be1
         server srv1 ${s1_addr}:${s1_port}
@@ -76,10 +76,10 @@ haproxy h2 -conf {
         tune.ssl.default-dh-param 2048
 
     defaults
-        timeout client 1s
-        timeout server 1s
-        timeout connect 1s
-        default-server downinter 1s rise 1 fall 1
+        timeout client 20
+        timeout server 20
+        timeout connect 20
+        default-server downinter 1s inter 40 rise 1 fall 1
 
     backend be2
         option log-health-checks