]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTESTS: wait for proper return of enable server in cli add server test
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 22 Mar 2021 10:44:12 +0000 (11:44 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 22 Mar 2021 10:52:48 +0000 (11:52 +0100)
Add an empty expect statement after the 'enable server' cli command.
This ensures that the command has been properly handled by haproxy and
its processing is over.

It should fix the unstable behavior of the test which causes reports of
503 even after the server has been enabled.

This should fix the github issue #1188.

reg-tests/server/cli_add_server.vtc

index a6dcc8df75da4133c7870ac2971a8d5347087914..8663faf25872459cffc83a5d10562dd413878608 100644 (file)
@@ -82,6 +82,7 @@ client c2 -connect ${h1_feS_sock} {
 
 haproxy h1 -cli {
        send "enable server test/s1"
+       expect ~ ".*"
 }
 
 client c3 -connect ${h1_feS_sock} {