]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTEST: lua/b00003: Relax the regex matching the log message
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 1 Apr 2019 09:17:40 +0000 (11:17 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 1 Apr 2019 13:43:40 +0000 (15:43 +0200)
The timeer TR may be greater than 10ms, making the test fails.

reg-tests/lua/b00003.vtc

index 75cdd7d8da69c1204bfe7f6d2fab11a7af9a8071..f58229bc1de9a483c9a209391d2e5bdc606d5ab9 100644 (file)
@@ -20,7 +20,7 @@ feature ignore_unknown_macro
 
 syslog Slog -level info -repeat 100 {
     recv info
-    expect ~ "[^:\\[ ]\\[${h1_pid}\\]: Ta=[0-9]* Tc=[0-9]* Td=[0-9]* Th=[0-9]* Ti=[0-9]* Tq=[0-9]* TR=[0-9] Tr=[0-9]* Tt=[0-9]* Tw=[0-9]*"
+    expect ~ "[^:\\[ ]\\[${h1_pid}\\]: Ta=[0-9]* Tc=[0-9]* Td=[0-9]* Th=[0-9]* Ti=[0-9]* Tq=[0-9]* TR=[0-9]* Tr=[0-9]* Tt=[0-9]* Tw=[0-9]*"
 } -start
 
 haproxy h1 -conf {