[master] d6d97bb Disable streaming on byte counter test cases

Martin Blix Grydeland martin at varnish-software.com
Mon Mar 31 12:02:00 CEST 2014


commit d6d97bb34290da61ba350d44309adedc07c06824
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Mon Mar 31 12:00:47 2014 +0200

    Disable streaming on byte counter test cases
    
    This makes sure no extra 'transfer-encoding' headers should pop up
    changing the byte counts.

diff --git a/bin/varnishtest/tests/l00002.vtc b/bin/varnishtest/tests/l00002.vtc
index 0106324..8c7bc35 100644
--- a/bin/varnishtest/tests/l00002.vtc
+++ b/bin/varnishtest/tests/l00002.vtc
@@ -11,6 +11,9 @@ server s1 {
 } -start
 
 varnish v1 -vcl+backend {
+	sub vcl_backend_response {
+		set beresp.do_stream = false;
+	}
 	sub vcl_deliver {
 		unset resp.http.date;
 		unset resp.http.age;
diff --git a/bin/varnishtest/tests/l00005.vtc b/bin/varnishtest/tests/l00005.vtc
index 51d0d7e..dbbea1b 100644
--- a/bin/varnishtest/tests/l00005.vtc
+++ b/bin/varnishtest/tests/l00005.vtc
@@ -16,6 +16,9 @@ varnish v1 -vcl+backend {
 		unset bereq.http.x-varnish;
 		set bereq.http.Host = "foo.bar";
 	}
+	sub vcl_backend_response {
+		set beresp.do_stream = false;
+	}
 } -start
 
 # Request (1002):



More information about the varnish-commit mailing list