From: Amaury Denoyelle Date: Mon, 22 Mar 2021 10:44:12 +0000 (+0100) Subject: REGTESTS: wait for proper return of enable server in cli add server test X-Git-Tag: v2.4-dev14~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79e6d2a7adbd040d83e90f4c8fa46d31399ba16c;p=thirdparty%2Fhaproxy.git REGTESTS: wait for proper return of enable server in cli add server test 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. --- diff --git a/reg-tests/server/cli_add_server.vtc b/reg-tests/server/cli_add_server.vtc index a6dcc8df75..8663faf258 100644 --- a/reg-tests/server/cli_add_server.vtc +++ b/reg-tests/server/cli_add_server.vtc @@ -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} {