r3521 - trunk/varnish-cache/bin/varnishtest/tests

phk at projects.linpro.no phk at projects.linpro.no
Sun Jan 18 17:57:07 CET 2009


Author: phk
Date: 2009-01-18 17:57:06 +0100 (Sun, 18 Jan 2009)
New Revision: 3521

Modified:
   trunk/varnish-cache/bin/varnishtest/tests/c00019.vtc
Log:
Add a protective object to prevent purge.list from pruning our
purges before we test their numbers.



Modified: trunk/varnish-cache/bin/varnishtest/tests/c00019.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/c00019.vtc	2009-01-18 16:43:46 UTC (rev 3520)
+++ trunk/varnish-cache/bin/varnishtest/tests/c00019.vtc	2009-01-18 16:57:06 UTC (rev 3521)
@@ -4,6 +4,8 @@
 
 server s1 {
 	rxreq
+	txresp -hdr "foo: 0" -body "foo0"
+	rxreq
 	txresp -hdr "foo: 1" -body "foo1"
 	rxreq
 	txresp -hdr "foo: 2" -body "foo2"
@@ -22,6 +24,9 @@
 # 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 @@
 # 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



More information about the varnish-commit mailing list