[master] bfdd9ac76 Use barrier instead of delay to stabilize r01086

Poul-Henning Kamp phk at FreeBSD.org
Mon Nov 21 12:49:05 UTC 2022


commit bfdd9ac76ce1143322ee8bd0189c6545258ef30b
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Nov 21 12:47:45 2022 +0000

    Use barrier instead of delay to stabilize r01086

diff --git a/bin/varnishtest/tests/r01086.vtc b/bin/varnishtest/tests/r01086.vtc
index d15ef7afb..d5fca1602 100644
--- a/bin/varnishtest/tests/r01086.vtc
+++ b/bin/varnishtest/tests/r01086.vtc
@@ -1,5 +1,7 @@
 varnishtest "#1086 junk after gzip from backend and streaming enabled"
 
+barrier b1 cond 2
+
 server s1 {
 	# This one will be streamed
 	rxreq
@@ -20,7 +22,7 @@ server s1 {
 		sendhex "00000000"
 	send "\r\n"
 
-	delay .2
+	barrier b1 sync
 
 	chunked "FOOBAR"
 	non_fatal
@@ -40,6 +42,7 @@ client c1 {
 	txreq -hdr "Cookie: FOO"
 	rxresphdrs
 	expect resp.status == 200
+	barrier b1 sync
 	expect_close
 } -run
 


More information about the varnish-commit mailing list