[master] a50b1d725 vtc: Polish r1506
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Mon Jan 16 16:40:06 UTC 2023
commit a50b1d725a7cd3486498bcc99938c27b88b2d9c1
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Mon Jan 16 17:37:25 2023 +0100
vtc: Polish r1506
Opportunity noticed during the review of #3872.
diff --git a/bin/varnishtest/tests/r01506.vtc b/bin/varnishtest/tests/r01506.vtc
index c9f07d0e9..96b7b54c9 100644
--- a/bin/varnishtest/tests/r01506.vtc
+++ b/bin/varnishtest/tests/r01506.vtc
@@ -2,7 +2,7 @@ varnishtest "range requests on streamed response"
barrier b1 cond 2 -cyclic
-server s1 -repeat 5 {
+server s0 {
rxreq
txresp -nolen \
-hdr "Transfer-Encoding: chunked" \
@@ -18,7 +18,7 @@ server s1 -repeat 5 {
send "11\r\n7_23456789abcdef\n"
chunkedlen 0
-} -start
+} -dispatch
varnish v1 -vcl+backend {} -start
@@ -31,7 +31,6 @@ client c1 {
barrier b1 sync
rxrespbody
expect resp.bodylen == 85
- delay .1
# We cannot do tail-ranges when streaming
txreq -url /2 -hdr "Range: bytes=-10"
@@ -41,7 +40,6 @@ client c1 {
barrier b1 sync
rxrespbody
expect resp.bodylen == 136
- delay .1
# We cannot do open-ranges when streaming
txreq -url /3 -hdr "Range: bytes=17-"
@@ -51,7 +49,6 @@ client c1 {
barrier b1 sync
rxrespbody
expect resp.bodylen == 136
- delay .1
# Handles out of bounds range
txreq -url /4 -hdr "Range: bytes=102-200"
@@ -60,7 +57,6 @@ client c1 {
barrier b1 sync
rxrespbody
expect resp.bodylen == 34
- delay .1
# Keeps working after short response
txreq -url /5 -hdr "Range: bytes=17-101"
More information about the varnish-commit
mailing list