]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTESTS: startup: add alternatives values in automatic_maxconn.vtc
authorWilliam Lallemand <wlallemand@haproxy.org>
Wed, 14 Dec 2022 10:04:58 +0000 (11:04 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 14 Dec 2022 10:16:51 +0000 (11:16 +0100)
The calculated maxconn could produce other values when compiled with
debug options.

Must be backported where 6b6f082 was backported (as far as 2.5).

reg-tests/startup/automatic_maxconn.vtc

index b7433b1a9f2bff60988f442842a72203544daf3b..0f4b3848d8313427c185b45355f33455c9756cf2 100644 (file)
@@ -23,7 +23,7 @@ haproxy h1 -arg "-m 1024" -conf {
 
 haproxy h1 -cli {
        send "show info"
-       expect ~ ".*Maxconn: 29000\n.*"
+       expect ~ ".*Maxconn: (29000|28000)\n.*"
 }
 
 haproxy h2 -arg "-m 384" -conf {
@@ -31,7 +31,7 @@ haproxy h2 -arg "-m 384" -conf {
 
 haproxy h2 -cli {
        send "show info"
-       expect ~ ".*Maxconn: 11000\n.*"
+       expect ~ ".*Maxconn: (11000|10000)\n.*"
 }
 
 haproxy h3 -arg "-m 256" -conf {
@@ -39,7 +39,7 @@ haproxy h3 -arg "-m 256" -conf {
 
 haproxy h3 -cli {
        send "show info"
-       expect ~ ".*Maxconn: 7300\n.*"
+       expect ~ ".*Maxconn: (7300|7000)\n.*"
 }
 
 # 1 SSL front but no back