[experimental-ims] 96a4a90 Try to make it easier to see why this test fails.

Geoff Simmons geoff at varnish-cache.org
Mon Jan 9 21:51:59 CET 2012


commit 96a4a9034bb0766228720bccba04cba3726f24b1
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Sep 20 12:15:54 2011 +0000

    Try to make it easier to see why this test fails.

diff --git a/bin/varnishtest/tests/r00962.vtc b/bin/varnishtest/tests/r00962.vtc
index 66f447b..faf4b4b 100644
--- a/bin/varnishtest/tests/r00962.vtc
+++ b/bin/varnishtest/tests/r00962.vtc
@@ -32,6 +32,12 @@ varnish v1 -cliok "debug.persistent s0 dump"
 varnish v1 -cliok "debug.persistent s0 sync"
 varnish v1 -stop
 
+server s1 {
+	rxreq 
+	txresp -status 400 -msg "Persistent Object Not Found"
+} -start
+
+
 varnish v2 \
 	-arg "-pdiag_bitmap=0x20000" \
 	-storage "-spersistent,${tmpdir}/_.per2,10m -spersistent,${tmpdir}/_.per1,10m" \
@@ -40,6 +46,7 @@ varnish v2 \
 client c1 -connect ${v2_sock} {
 	txreq -url "/"
 	rxresp
+	expect resp.msg != "Persistent Object Not Found"
 	expect resp.status == 200
 	expect resp.http.X-Varnish == "1001"
 } -run



More information about the varnish-commit mailing list