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

phk at varnish-cache.org phk at varnish-cache.org
Mon Oct 25 23:43:08 CEST 2010


Author: phk
Date: 2010-10-25 23:43:08 +0200 (Mon, 25 Oct 2010)
New Revision: 5465

Modified:
   trunk/varnish-cache/bin/varnishtest/tests/r00663.vtc
Log:
Make this testcase a bit more predictable.

I am not convinced this test-case is really necessary, since a
similar and much cheaper check is already in place in the
wrk_herdtimer_thread() function.




Modified: trunk/varnish-cache/bin/varnishtest/tests/r00663.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/r00663.vtc	2010-10-25 13:07:31 UTC (rev 5464)
+++ trunk/varnish-cache/bin/varnishtest/tests/r00663.vtc	2010-10-25 21:43:08 UTC (rev 5465)
@@ -5,9 +5,10 @@
 
 server s1 {
 	rxreq
-	txresp
+	txresp -bodylen 1
+	sema r1 sync 2
 	rxreq
-	txresp
+	txresp -bodylen 2
 } -start
 
 varnish v1 -vcl+backend {
@@ -48,9 +49,6 @@
 		char buf[16];
 		int fd;
 		
-		/* make sure "one" has done its open */
-		    sleep(1);
-		
 		fd = open("/dev/null", O_RDONLY);
 		
 		sprintf(buf, "%d", errno);
@@ -75,6 +73,7 @@
 } -start
 
 client c2 {
+	sema r1 sync 2
 	txreq -url "/two" -hdr "Client: two"
 	rxresp
         expect resp.status == 200




More information about the varnish-commit mailing list