[4.0] 12b2362 These two test-cases cannot work if streaming is allowed.
Poul-Henning Kamp
phk at FreeBSD.org
Thu Mar 13 10:24:32 CET 2014
commit 12b236205d184be5f2cb5acbd0e9d45ed604a58c
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Wed Mar 12 10:10:13 2014 +0000
These two test-cases cannot work if streaming is allowed.
diff --git a/bin/varnishtest/tests/c00013.vtc b/bin/varnishtest/tests/c00013.vtc
index 7bc36ae..b9578aa 100644
--- a/bin/varnishtest/tests/c00013.vtc
+++ b/bin/varnishtest/tests/c00013.vtc
@@ -4,13 +4,22 @@ server s1 {
rxreq
expect req.url == "/foo"
send "HTTP/1.1 200 Ok\r\nConnection: close\r\n\r\n"
+ delay .2
sema r1 sync 2
+ delay .2
send "line1\n"
+ delay .2
sema r1 sync 2
send "line2\n"
} -start
-varnish v1 -vcl+backend { } -start
+varnish v1 -vcl+backend {
+ sub vcl_backend_response {
+ set beresp.do_stream = false;
+ }
+} -start
+
+varnish v1 -cliok "param.set debug +syncvsl"
client c1 {
txreq -url "/foo" -hdr "client: c1"
@@ -24,7 +33,7 @@ sema r1 sync 2
client c2 {
txreq -url "/foo" -hdr "client: c2"
- delay .1
+ delay .2
sema r1 sync 2
rxresp
expect resp.status == 200
diff --git a/bin/varnishtest/tests/c00014.vtc b/bin/varnishtest/tests/c00014.vtc
index a8b2d03..fffbbd7 100644
--- a/bin/varnishtest/tests/c00014.vtc
+++ b/bin/varnishtest/tests/c00014.vtc
@@ -15,6 +15,7 @@ server s1 {
varnish v1 -vcl+backend {
sub vcl_backend_response {
+ set beresp.do_stream = false;
set beresp.uncacheable = true;
}
} -start
More information about the varnish-commit
mailing list