]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTESTS: peers: leave a bit more time to peers to synchronize
authorWilly Tarreau <w@1wt.eu>
Wed, 16 Feb 2022 10:28:09 +0000 (11:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Feb 2022 13:42:13 +0000 (14:42 +0100)
tls_basic_sync_wo_stkt_backend fails once every 200 runs for me. This
seems to be because the startup delay doesn't always allow peers to
perform a simultaneous connect, close and new attempt. With 3s I can't
see it fail anymore. In addition the long "delay 0.2" are still way too
much since we do not really care about the startup order in practice.

reg-tests/peers/tls_basic_sync_wo_stkt_backend.vtc

index 44cd7544d0b18cff3bb046c72bbd80d6d51d6232..7e1bfd38d889e345714c8603fba111e3fa77e8e9 100644 (file)
@@ -115,20 +115,20 @@ client c4 -connect ${h1_fe_sock} {
 } -start
 
 haproxy h1 -start
-delay 0.2
+delay 0.02
 haproxy h2 -start
-delay 0.2
+delay 0.02
 haproxy h3 -start
-delay 0.2
+delay 0.02
 haproxy h4 -start
-delay 0.2
+delay 0.02
 
 client c1 -wait
 client c2 -wait
 client c3 -wait
 client c4 -wait
 
-delay 2
+delay 3
 
 haproxy h1 -cli {
     send "show table peers/stkt"