[4.0] 746e41c Disable streaming in this test

Lasse Karstensen lkarsten at varnish-software.com
Mon Sep 22 16:38:24 CEST 2014


commit 746e41c3a9818e2b7c43b9c40c30ff7851ea3ea0
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