[master] 16bc126 Try to make the new tests more robust
Poul-Henning Kamp
phk at FreeBSD.org
Tue May 5 14:42:32 CEST 2015
commit 16bc12623abb66cf969f86b1a3c439e0d122289d
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue May 5 12:42:17 2015 +0000
Try to make the new tests more robust
diff --git a/bin/varnishtest/tests/c00034.vtc b/bin/varnishtest/tests/c00034.vtc
index ee46e29..bab80f0 100644
--- a/bin/varnishtest/tests/c00034.vtc
+++ b/bin/varnishtest/tests/c00034.vtc
@@ -124,10 +124,10 @@ server s1 -repeat 2 {
send "0123456789"
send "0123456789"
send "0123456789"
- sema r1 sync 2
send "0123456789"
send "0123456789"
send "0123456789"
+ sema r1 sync 2
send "0123456789"
send "0123456789"
} -start
@@ -159,14 +159,14 @@ delay .1
client c1 {
# Closed C-L because we cannot use C-L
txreq -url /2 \
- -hdr "Range: bytes=20-29" \
+ -hdr "Range: bytes=2-5" \
-hdr "Connection: close" \
-hdr "Accept-encoding: gzip"
rxresphdrs
expect resp.status == 206
- expect resp.http.Content-Range == "bytes 20-29/*"
- expect resp.http.Content-Length == 10
+ expect resp.http.Content-Range == "bytes 2-5/*"
+ expect resp.http.Content-Length == 4
sema r1 sync 2
- recv 10
+ recv 4
expect_close
} -run
More information about the varnish-commit
mailing list