Skip to content

Commit

Permalink
REGTESTS: fix a reload race in abns_socket.vtc
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
wtarreau committed Oct 14, 2024
1 parent 0302adf commit 93c9f19
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions reg-tests/seamless-reload/abns_socket.vtc
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}

Expand Down

0 comments on commit 93c9f19

Please sign in to comment.