]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REGTESTS: cli: add delay 0.1 before connect to cli
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Wed, 16 Oct 2024 16:27:30 +0000 (18:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Oct 2024 20:00:58 +0000 (22:00 +0200)
commit5bbcdc003ab3a48c12f25be84f843f0e5756b1e0
treefd3c041cc224e8ebc1584fe9fcb1d37103c320c2
parent2c2dac77aa96842b95e3791e2c5a6637b11c8cae
REGTESTS: cli: add delay 0.1 before connect to cli

When vtest starts haproxy process, it loops until the moment, when haproxy
pidfile is created. When pidfile is created, vtest considers that haproxy
process is ready and it starts to perform test commands, in particular, it
connects to CLI. It's not very reliable approach to base the check of the
process readiness on the PID file. After master-worker architecture
refactoring pidfile is created in the early init stage, but master and worker
are not yet finished its initialization routines. So, all mcli tests and some
tests where we sent commands to CLI start to fail regularly.

In vtest at the moment there is no any other approach to check that the
process is really ready. So let's add a delay 0.1s before connecting to CLI in
all mcli tests and in acl_cli_spaces test.
reg-tests/http-rules/acl_cli_spaces.vtc
reg-tests/mcli/mcli_debug_dev.vtc
reg-tests/mcli/mcli_show_info.vtc
reg-tests/mcli/mcli_start_progs.vtc