From: Willy Tarreau Date: Mon, 14 Oct 2024 17:11:04 +0000 (+0200) Subject: REGTESTS: fix a reload race in abns_socket.vtc X-Git-Tag: v3.1-dev10~68 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=93c9f19af7b3f8bf669460d7c0b0237f669a56a4;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/reg-tests/seamless-reload/abns_socket.vtc b/reg-tests/seamless-reload/abns_socket.vtc index e8e5f287fe..4a266afb82 100644 --- a/reg-tests/seamless-reload/abns_socket.vtc +++ b/reg-tests/seamless-reload/abns_socket.vtc @@ -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' }