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

Expand the -repeat 6 in the server clause, this seems to make the

test work reliably on my machine.

Also set the reponse text to a recognizable text for improved logreading
should it fail again.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3294 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 9e214dec
......@@ -2,7 +2,17 @@
test "Check that max_restarts works and that we don't fall over"
server s1 -repeat 6 {
server s1 {
rxreq
txresp -body "012345\n"
rxreq
txresp -body "012345\n"
rxreq
txresp -body "012345\n"
rxreq
txresp -body "012345\n"
rxreq
txresp -body "012345\n"
rxreq
txresp -body "012345\n"
} -start
......@@ -15,10 +25,13 @@ varnish v1 -vcl+backend {
sub vcl_error {
if (req.restarts == 2) {
set obj.status = 200;
set obj.response = "restart=2";
} elsif (req.restarts > 2) {
set obj.status = 501;
set obj.response = "restart>2";
} elsif (req.restarts < 2) {
set obj.status = 500;
set obj.response = "restart<2";
}
}
} -start
......
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