Commit d6a77991 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add a protective object to prevent purge.list from pruning our

purges before we test their numbers.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3521 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent ac066c76
......@@ -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
......
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