REGTESTS: fix a reload race in abns_socket.vtc

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.
This commit is contained in:
Willy Tarreau 2024-10-14 19:11:04 +02:00
parent 0302adf996
commit 93c9f19af7
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@ haproxy h1 -W -S -conf {
} -start } -start
shell { 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' echo "reload" | socat -t1000 TCP:${h1_mcli_addr}:${h1_mcli_port} - | grep 'Success=1'
} }