]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTESTS: abortonclose: after retries, 503 is expected, not close
authorWilly Tarreau <w@1wt.eu>
Fri, 20 Aug 2021 09:12:47 +0000 (11:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 20 Aug 2021 09:12:47 +0000 (11:12 +0200)
The abortonclose test was only expecting a close after all server
retries were exhausted, it didn't check for the pending 503, which
fails with new versions of vtest starting with commit 8d6c6bd
("Leak-plugging on barriers").

This may be backported, but carefully in case older versions would
really close without responding.

reg-tests/http-messaging/http_abortonclose.vtc

index c083f29f1a50db45b5f37f93513aa32f097a4432..3a7208574f5f46b497fcb0d649edc6d7ac558b18 100644 (file)
@@ -83,7 +83,8 @@ haproxy h1 -conf {
 # No server, wait all connection retries : SC--
 client  c1 -connect ${h1_fe1_sock} {
     txreq -url /c1
-    expect_close
+    rxresp
+    expect resp.status == 503
 } -run
 
 # Wait c1 log entry