From b5f2f2a1338469c524b0163a3b7f1fdcda9f4f31 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 18 Jan 2009 16:57:06 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishtest/tests/c00019.vtc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.39.5