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

phk at projects.linpro.no phk at projects.linpro.no
Fri Feb 13 12:10:37 CET 2009


Author: phk
Date: 2009-02-13 12:10:37 +0100 (Fri, 13 Feb 2009)
New Revision: 3766

Modified:
   trunk/varnish-cache/bin/varnishtest/tests/c00014.vtc
Log:
Use semaphores instead of delays



Modified: trunk/varnish-cache/bin/varnishtest/tests/c00014.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/c00014.vtc	2009-02-13 10:46:14 UTC (rev 3765)
+++ trunk/varnish-cache/bin/varnishtest/tests/c00014.vtc	2009-02-13 11:10:37 UTC (rev 3766)
@@ -5,10 +5,9 @@
 server s1 {
 	rxreq
 	expect req.url == "/foo"
+	sema r1 sync 2
 	send "HTTP/1.1 200 Ok\r\nContent-Length: 12\r\n\r\n"
-	delay .5
 	send "line1\n"
-	delay .5
 	send "line2\n"
 
 	rxreq
@@ -29,11 +28,15 @@
 	expect resp.http.content-length == 12
 	expect resp.http.x-varnish == "1001"
 } -start
-delay .2
+sema r1 sync 2
 client c2 {
 	txreq -url "/foo"
 	rxresp
 	expect resp.status == 200
 	expect resp.http.content-length == 6
 	expect resp.http.x-varnish == "1002"
-} -start
+} -run
+
+client c1 -wait
+
+varnish v1 -expect cache_hitpass == 1



More information about the varnish-commit mailing list