Commit 00ce8fcf authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

White space OCD.

parent 4defdfc1
varnishtest "Regression test for #1684" varnishtest "Regression test for #1684"
server s1 { server s1 {
rxreq rxreq
txresp -hdr "foo: 1" txresp -hdr "foo: 1"
accept accept
rxreq rxreq
txresp -hdr "foo: 2" txresp -hdr "foo: 2"
accept accept
rxreq rxreq
txresp -hdr "foo: 3" txresp -hdr "foo: 3"
} -start } -start
varnish v1 -vcl+backend { varnish v1 -vcl+backend {
sub vcl_recv { return (pass); } sub vcl_recv { return (pass); }
sub vcl_backend_response { sub vcl_backend_response {
set beresp.http.bar = bereq.retries; set beresp.http.bar = bereq.retries;
if (beresp.http.foo != bereq.http.stop) { if (beresp.http.foo != bereq.http.stop) {
return (retry); return (retry);
} }
} }
} -start } -start
# check log for the aborted POST # check log for the aborted POST
...@@ -31,8 +31,7 @@ varnish v1 -cliok "param.set debug +syncvsl" ...@@ -31,8 +31,7 @@ varnish v1 -cliok "param.set debug +syncvsl"
varnish v1 -cliok "param.set max_retries 2" varnish v1 -cliok "param.set max_retries 2"
client c1 { client c1 {
txreq -hdr "stop: 3" txreq -hdr "stop: 3"
rxresp rxresp
expect resp.http.foo == 3 expect resp.http.foo == 3
} -run } -run
...@@ -51,7 +51,7 @@ varnish v1 -expect VBE.vcl2.default.happy >= 0 ...@@ -51,7 +51,7 @@ varnish v1 -expect VBE.vcl2.default.happy >= 0
# and the unused one should go cold # and the unused one should go cold
delay 4 delay 4
varnish v1 -expect !VBE.vcl2.default.happy varnish v1 -expect !VBE.vcl2.default.happy
# Mark the used warm and use it the other # Mark the used warm and use it the other
varnish v1 -cliok "vcl.state vcl1 warm" varnish v1 -cliok "vcl.state vcl1 warm"
......
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