[master] 7f21d7ec4 vtc: Stabilize r02305.vtc

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Tue Oct 20 07:34:06 UTC 2020


commit 7f21d7ec4d3c219a6e6313a7e1dd6349d0c8fdb1
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Tue Oct 20 09:30:40 2020 +0200

    vtc: Stabilize r02305.vtc
    
    We don't need a delay, we need to sync operations.

diff --git a/bin/varnishtest/tests/r02305.vtc b/bin/varnishtest/tests/r02305.vtc
index dfd60398a..d5a40fe73 100644
--- a/bin/varnishtest/tests/r02305.vtc
+++ b/bin/varnishtest/tests/r02305.vtc
@@ -1,12 +1,14 @@
 varnishtest "#2305: h/2 reembark with a request body"
 
 barrier b1 cond 2
+barrier b2 cond 2
+barrier b3 cond 2
 
 server s1 {
 	rxreq
 	expect req.url == "/"
 	barrier b1 sync
-	delay 2
+	barrier b2 sync
 	txresp
 } -start
 
@@ -25,10 +27,13 @@ client c1 {
 		txreq
 		rxresp
 		expect resp.status == 200
+		barrier b3 sync
 	} -start
 	stream 3 {
 		barrier b1 sync
 		txreq -req POST -body "foo"
+		barrier b2 sync
+		barrier b3 sync
 		rxresp
 		expect resp.status == 200
 	} -run


More information about the varnish-commit mailing list