]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTESTS: Fix log matching in healthcheck-section.vtc
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 9 Jun 2026 06:36:29 +0000 (08:36 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 9 Jun 2026 06:42:01 +0000 (08:42 +0200)
One of the regex matching syslog messages for S2 was not correct, making the
script fail depending on the order of the healthchecks. It is now fixed.

reg-tests/checks/healthcheck-section.vtc

index 0eed1a744c89974b95298668ca67cc45af865f8a..38fa2f20eb7d535b92ef3b2ec1814807069ae4a4 100644 (file)
@@ -144,7 +144,7 @@ syslog S2 -level notice {
     recv
     expect ~ "[^:\\[ ]\\[${h1_pid}\\]: Health check for server be2/srv[0-9]+ succeeded"
     recv
-    expect ~ "[^:\\[ ]\\[${h1_pid}\\]: Health check for server be2/srv[0-9] succeeded"
+    expect ~ "[^:\\[ ]\\[${h1_pid}\\]: Health check for server be2/srv[0-9]+ succeeded"
     recv
     expect ~ "[^:\\[ ]\\[${h1_pid}\\]: Health check for server be2/srv[0-9]+ succeeded"
     recv