REGTESTS: Fix ssl_errors.vtc script to wait for connections close
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 21 Feb 2023 10:24:04 +0000 (11:24 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 21 Feb 2023 10:44:55 +0000 (11:44 +0100)
commit4ad6ee94ab6d4b0d9d51065c8e9078ca018d4d1f
tree0ad1fb571ce92a669bd59488e1bd57cc046fe79d
parent848878c2158511ec3c55d7b5c0b32dbfa6a56066
REGTESTS: Fix ssl_errors.vtc script to wait for connections close

In this scripts, several clients perform a requests and exit because an SSL
error is expected and thus no response is sent. However, we must explicitly
wait for the connection close, via an "expect_close" statement.  Otherwise,
depending on the timing, HAProxy may detect the client abort before any
connection attempt on the server side and no SSL error is reported, making
the script to fail.
reg-tests/ssl/ssl_errors.vtc