Commit eb4106e3 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland

Fix r01684.vtc logexpect handling

The script lacked a logexpect -wait at the end telling it to actually
wait for the required log content.

Added a new rule to match first on an actual retry backend transaction
and match the header set/unset/set tests on that vxid.
parent fe7f0547
......@@ -21,10 +21,11 @@ varnish v1 -vcl+backend {
} -start
# check log for the aborted POST
logexpect l1 -v v1 {
expect * = BereqHeader "^X-Varnish:"
logexpect l1 -v v1 -g request {
expect * * Begin "^bereq .* retry"
expect * = BereqHeader "^X-Varnish:"
expect * = BereqUnset "^X-Varnish:"
expect * = BereqHeader "^X-Varnish"
expect * = BereqHeader "^X-Varnish:"
} -start
varnish v1 -cliok "param.set debug +syncvsl"
......@@ -35,3 +36,5 @@ client c1 {
rxresp
expect resp.http.foo == 3
} -run
logexpect l1 -wait
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment