From: Christopher Faulet Date: Tue, 5 May 2020 06:10:36 +0000 (+0200) Subject: REGTEST: checks: Fix sync condition for agent-check X-Git-Tag: v2.2-dev7~13 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=cb436f0c291c716fea5162adf5b111c5ddc9cc3b;p=haproxy.git REGTEST: checks: Fix sync condition for agent-check agent-check.vtc script fails time to time because the 2nd cli command is sent to early. Waiting for the connection close in the s1 server should be enough to be sure the server state is updated. --- diff --git a/reg-tests/checks/agent-check.vtc b/reg-tests/checks/agent-check.vtc index 99cc58114..eb2e08e04 100644 --- a/reg-tests/checks/agent-check.vtc +++ b/reg-tests/checks/agent-check.vtc @@ -9,6 +9,7 @@ server s1 { barrier b1 sync recv 5 send "75%,max-conn:30,maint,down\n" + expect_close barrier b2 sync } -start