]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTEST: Wrong assumption in IP:port logging test.
authorFrédéric Lécaille <flecaille@haproxy.com>
Tue, 7 May 2019 10:00:36 +0000 (12:00 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 7 May 2019 11:58:35 +0000 (13:58 +0200)
In this reg test, as the client connection is not supposed to receive any
server response, we should try to "rxresp" but we should expect the client
connection to be closed by haproxy. This is done replacing "rxresp" by
"expect_close". Furthermore since dbb75ee3 vtest commit, calling "rxresp"
expects at least to receive a HTTP header as shown by Travis build
here: https://travis-ci.com/haproxy/haproxy/jobs/198126488.

reg-tests/log/wrong_ip_port_logging.vtc

index 228c3fdc20c566d867e1203a78e22fae072c0c27..52857a2e3183d007124d89d1acfcf2c2d1344879 100644 (file)
@@ -57,7 +57,7 @@ backend be_app
 
 client c1 -connect ${h1_fe_1_sock} {
     txreq -url "/"
-    rxresp
+    expect_close
 } -run
 
 syslog Slg_1 -wait