From: phk Date: Sun, 18 Jan 2009 16:57:06 +0000 (+0000) Subject: Add a protective object to prevent purge.list from pruning our X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5f2f2a1338469c524b0163a3b7f1fdcda9f4f31;p=varnish Add a protective object to prevent purge.list from pruning our purges before we test their numbers. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3521 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/tests/c00019.vtc b/varnish-cache/bin/varnishtest/tests/c00019.vtc index 4ec029f6..278e3e3f 100644 --- a/varnish-cache/bin/varnishtest/tests/c00019.vtc +++ b/varnish-cache/bin/varnishtest/tests/c00019.vtc @@ -3,6 +3,8 @@ test "Check purge counters and duplicate purge elimination" server s1 { + rxreq + txresp -hdr "foo: 0" -body "foo0" rxreq txresp -hdr "foo: 1" -body "foo1" rxreq @@ -22,6 +24,9 @@ varnish v1 -cliok "purge.list" # Our fetch is not affected by the purge # as the FOO-purge was preexisting client c1 { + txreq -url /BAR + rxresp + expect resp.http.foo == 0 txreq -url /FOO rxresp expect resp.http.foo == 1 @@ -64,7 +69,7 @@ varnish v1 -expect n_purge_add == 5 # Enable dup removal of purges varnish v1 -cliok "param.set purge_dups on" -# This should incapacitate the to previous FOO purges. +# This should incapacitate the two previous FOO purges. varnish v1 -cliok "purge.url FOO" varnish v1 -expect n_purge_add == 6 varnish v1 -expect n_purge_dups == 3