Skip to content

Commit

Permalink
vtc: Polish r1506
Browse files Browse the repository at this point in the history
Opportunity noticed during the review of #3872.
  • Loading branch information
dridi committed Jan 16, 2023
1 parent 9ec1423 commit a50b1d7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions bin/varnishtest/tests/r01506.vtc
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand All @@ -18,7 +18,7 @@ server s1 -repeat 5 {
send "11\r\n7_23456789abcdef\n"
chunkedlen 0

} -start
} -dispatch

varnish v1 -vcl+backend {} -start

Expand All @@ -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"
Expand All @@ -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-"
Expand All @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit a50b1d7

Please sign in to comment.