]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTESTS: abortonclose: Add a barrier to not mix up log messages
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 2 Jun 2022 11:56:00 +0000 (13:56 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 2 Jun 2022 12:12:18 +0000 (14:12 +0200)
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.

reg-tests/http-messaging/http_abortonclose.vtc

index 4dc4bbe8808b3256baa7a6895a52d0aedbaacdde..65831635cbed0fbfa4ed847053dca8dcbe2851e8 100644 (file)
@@ -43,7 +43,7 @@ syslog S -level info {
     barrier b2 sync
     recv
     expect ~ "[^:\\[ ]*\\[[0-9]*\\]: .* .* fe1 be1_2/srv1 [0-9]*/[0-9]*/-1/-1/[0-9]* -1 .* - - CC-- .* .* \"GET /c2 HTTP/1\\.1\""
-
+    barrier b2 sync
     recv
     expect ~ "[^:\\[ ]*\\[[0-9]*\\]: .* .* fe2 be2/<NOSRV> [0-9]*/[0-9]*/-1/-1/[0-9]* -1 .* - - CQ-- .* .* \"GET /c4 HTTP/1\\.1\""
     barrier b2 sync
@@ -114,6 +114,9 @@ client  c2 -connect ${h1_fe1_sock} {
     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