From 79e6d2a7adbd040d83e90f4c8fa46d31399ba16c Mon Sep 17 00:00:00 2001 From: Amaury Denoyelle Date: Mon, 22 Mar 2021 11:44:12 +0100 Subject: [PATCH] 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. --- reg-tests/server/cli_add_server.vtc | 1 + 1 file changed, 1 insertion(+) 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} { -- 2.47.3