[master] 7a14478 Stabilize this test with a short sleep

Poul-Henning Kamp phk at FreeBSD.org
Mon Mar 24 14:13:16 CET 2014


commit 7a144781c3d2a926e84bfa1cc32f44b11a4621b8
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Mar 24 13:13:01 2014 +0000

    Stabilize this test with a short sleep

diff --git a/bin/varnishtest/tests/c00041.vtc b/bin/varnishtest/tests/c00041.vtc
index 24a7871..2b7efc2 100644
--- a/bin/varnishtest/tests/c00041.vtc
+++ b/bin/varnishtest/tests/c00041.vtc
@@ -47,21 +47,26 @@ client c1 {
 	txreq -url "/1" -hdr "foo: foo1"
 	rxresp
 	expect resp.status == 200
+	expect resp.http.x-varnish == 1001
 	expect resp.bodylen == 1
 
 	txreq -url "/1" -hdr "Foo: foo2"
 	rxresp
 	expect resp.status == 200
+	expect resp.http.x-varnish == 1003
 	expect resp.bodylen == 2
+	delay .1
 
 	txreq -url "/1" -hdr "foo: foo1"
 	rxresp
 	expect resp.status == 200
+	expect resp.http.x-varnish == "1005 1002"
 	expect resp.bodylen == 1
 
 	txreq -url "/1" -hdr "Foo: foo2"
 	rxresp
 	expect resp.status == 200
+	expect resp.http.x-varnish == "1006 1004"
 	expect resp.bodylen == 2
 
 	# Purge on hit



More information about the varnish-commit mailing list