]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTESTS: fix a reload race in abns_socket.vtc
authorWilly Tarreau <w@1wt.eu>
Mon, 14 Oct 2024 17:11:04 +0000 (19:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 Oct 2024 17:15:21 +0000 (19:15 +0200)
This test issues a reload over the master CLI, but it is totally
possible that the master has not yet finished starting up the master
CLI when the command is issued, resulting in a failure. This was much
more visible on the new master-worker model, but definitely affects the
old one and could be the reason for this test to occasionally fail on
the CI.

reg-tests/seamless-reload/abns_socket.vtc

index e8e5f287fee725a14ccd3c27fcb34c1a6ab23f3f..4a266afb82ff0599277bb5d78daa6df9c1cdd5cf 100644 (file)
@@ -45,6 +45,7 @@ haproxy h1 -W -S -conf {
 } -start
 
 shell {
+    sleep 0.1  ;# let the master process fully start and bind
     echo "reload" | socat -t1000 TCP:${h1_mcli_addr}:${h1_mcli_port} - | grep 'Success=1'
 }