REGTESTS: abortonclose: Add a barrier to not mix up log messages
Depending on the timing, time to time, the log message for "/c4" request can
be received before the one for "/c2" request. To (hopefully) fix the issue,
a barrier has been added to wait "/c2" log message before sending other
requests.
(cherry picked from commit 0f98a156a71120e566c715a08683f0a93e9b02d3)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 7ada7661d406c9dfe9ac1ce2db9468d059819d6b)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit e09278bb60ee109ab7e32df31408af033e53389d)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
diff --git a/reg-tests/http-messaging/http_abortonclose.vtc b/reg-tests/http-messaging/http_abortonclose.vtc
index 06d3f9d..36f82ba 100644
--- a/reg-tests/http-messaging/http_abortonclose.vtc
+++ b/reg-tests/http-messaging/http_abortonclose.vtc
@@ -43,7 +43,7 @@
barrier b2 sync
recv
expect ~ "[^:\\[ ]*\\[[0-9]*\\]: .* .* fe1 be1_2/srv1 [0-9]*/[0-9]*/-1/-1/[0-9]* 503 .* - - CC-- .* .* \"GET /c2 HTTP/1\\.1\""
-
+ barrier b2 sync
recv
expect ~ "[^:\\[ ]*\\[[0-9]*\\]: .* .* fe2 be2/<NOSRV> [0-9]*/[0-9]*/-1/-1/[0-9]* 503 .* - - CQ-- .* .* \"GET /c4 HTTP/1\\.1\""
barrier b2 sync
@@ -115,6 +115,9 @@
txreq -url /c2
} -run
+# Wait c2 log entry
+barrier b2 sync
+
# server with maxconn=1, abort waiting the server reply : CH--
client c3 -connect ${h1_fe2_sock} {
txreq -url /c3