[master] 7cee37c00 more test stabilization

Nils Goroll nils.goroll at uplex.de
Wed Apr 10 12:55:08 UTC 2019


commit 7cee37c00a5721b85d5f10b030acfd52ca7a07fa
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Wed Apr 10 14:52:57 2019 +0200

    more test stabilization
    
    With 32ef5dce5dd3d0e435186fc638e3749ea3e7b3c0, this test also cancels
    backend requests and thus may prevent the server from finishing writing
    the reponse body
    
    Ref #2964

diff --git a/bin/varnishtest/tests/d00022.vtc b/bin/varnishtest/tests/d00022.vtc
index 08130a15b..9344234b7 100644
--- a/bin/varnishtest/tests/d00022.vtc
+++ b/bin/varnishtest/tests/d00022.vtc
@@ -3,8 +3,10 @@ varnishtest "shard director Restarts"
 server s1 {
 	rxreq
 	txresp -body "ech3Ooj"
+	accept
 	rxreq
 	txresp -body "ech3Ooj"
+	accept
 	rxreq
 	txresp -body "ech3Ooj"
 } -start
@@ -12,8 +14,10 @@ server s1 {
 server s2 {
 	rxreq
 	txresp -body "ieQu2qua"
+	accept
 	rxreq
 	txresp -body "ieQu2qua"
+	accept
 	rxreq
 	txresp -body "ieQu2qua"
 } -start
@@ -21,8 +25,10 @@ server s2 {
 server s3 {
 	rxreq
 	txresp -body "xiuFi3Pe"
+	accept
 	rxreq
 	txresp -body "xiuFi3Pe"
+	accept
 	rxreq
 	txresp -body "xiuFi3Pe"
 } -start
@@ -38,6 +44,10 @@ varnish v1 -vcl+backend {
 		vd.reconfigure(25);
 	}
 
+	sub vcl_backend_fetch {
+		set bereq.http.Connection = "close";
+	}
+
 	sub vcl_recv {
 		set req.backend_hint = vd.backend(by=KEY,
 		    key=1756955383,


More information about the varnish-commit mailing list