[master] 785ba2e Disable streaming in this test

Poul-Henning Kamp phk at FreeBSD.org
Wed Aug 27 14:15:45 CEST 2014


commit 785ba2ea63b8661bd8216cee889a75526226bbe4
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Aug 27 12:14:25 2014 +0000

    Disable streaming in this test

diff --git a/bin/varnishtest/tests/c00034.vtc b/bin/varnishtest/tests/c00034.vtc
index 513038c..23910de 100644
--- a/bin/varnishtest/tests/c00034.vtc
+++ b/bin/varnishtest/tests/c00034.vtc
@@ -6,6 +6,10 @@ server s1 {
 } -start
 
 varnish v1 -vcl+backend {
+
+	sub vcl_backend_response {
+		set beresp.do_stream = false;
+	}
 } -start
 varnish v1 -cliok "param.set http_range_support off"
 
@@ -18,6 +22,7 @@ client c1 {
 
 varnish v1 -cliok "param.set http_range_support on"
 
+varnish v1 -expect s_resp_bodybytes == 100
 
 client c1 {
 	txreq -hdr "Range: bytes =0-9"
@@ -40,6 +45,12 @@ client c1 {
 	expect resp.status == 200
 	expect resp.bodylen == 100
 
+} -run
+
+varnish v1 -expect s_resp_bodybytes == 500
+
+client c1 {
+
 	txreq -hdr "Range: bytes=0-9"
 	rxresp
 	expect resp.status == 206



More information about the varnish-commit mailing list