]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTEST: checks: Fix sync condition for agent-check
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 May 2020 06:10:36 +0000 (08:10 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 May 2020 09:07:00 +0000 (11:07 +0200)
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.

reg-tests/checks/agent-check.vtc

index 99cc58114319123556b2ab1b358ff280113f1fe2..eb2e08e047f577338f8814c488b538786504a53d 100644 (file)
@@ -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