From: phk Date: Tue, 14 Oct 2008 09:15:50 +0000 (+0000) Subject: Expand the -repeat 6 in the server clause, this seems to make the X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e9f9511fadc187bade49e9e6d20884ab8b28d48;p=varnish 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: svn+ssh://projects.linpro.no/svn/varnish/trunk@3294 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/tests/b00019.vtc b/varnish-cache/bin/varnishtest/tests/b00019.vtc index 2501acbe..3ad08cc1 100644 --- a/varnish-cache/bin/varnishtest/tests/b00019.vtc +++ b/varnish-cache/bin/varnishtest/tests/b00019.vtc @@ -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