[master] 16ed166 Try to stabilize this test with a barrier.

Poul-Henning Kamp phk at FreeBSD.org
Wed Sep 7 21:38:11 CEST 2016


commit 16ed166092c4c6cdf76ceb9109a2f3ffb8262c4a
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Sep 7 19:33:02 2016 +0000

    Try to stabilize this test with a barrier.

diff --git a/bin/varnishtest/tests/t02001.vtc b/bin/varnishtest/tests/t02001.vtc
index 2fc8e54..af32f27 100644
--- a/bin/varnishtest/tests/t02001.vtc
+++ b/bin/varnishtest/tests/t02001.vtc
@@ -1,8 +1,11 @@
 varnishtest	"H1->H2 Upgrade"
 
+barrier b1 cond 2
+
 server s1 {
 	rxreq
 	expect req.http.host == foo.bar
+	barrier b1 sync
 	txresp -status 400 -bodylen 10
 } -start
 
@@ -21,6 +24,15 @@ client c1 {
 	expect resp.status == 101
 	expect resp.http.upgrade == h2c
 	expect resp.http.connection == Upgrade
+	txpri
+	stream 0 {
+		rxsettings
+		txsettings
+		txsettings -ack
+		rxsettings
+		expect settings.ack == true
+	} -run
+	barrier b1 sync
 	stream 1 {
 		rxresp
 		expect resp.status == 400



More information about the varnish-commit mailing list