[master] 28ece2a Try to make this test more stable under load.
Poul-Henning Kamp
phk at varnish-cache.org
Wed May 18 12:03:49 CEST 2011
commit 28ece2a06e6c01620e1a8aaab248aa9f9990f5a3
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Wed May 18 10:03:35 2011 +0000
Try to make this test more stable under load.
diff --git a/bin/varnishtest/tests/b00021.vtc b/bin/varnishtest/tests/b00021.vtc
index 87d91e3..d46caa2 100644
--- a/bin/varnishtest/tests/b00021.vtc
+++ b/bin/varnishtest/tests/b00021.vtc
@@ -5,13 +5,13 @@ feature SO_RCVTIMEO_WORKS
server s1 {
rxreq
send "HTTP/1.1 200 Ok\r\nConnection: close\r\n\r\n"
- delay 1.5
+ delay 4.0
send "Baba\n"
} -start
varnish v1 -vcl+backend {
sub vcl_miss {
- set bereq.between_bytes_timeout = 1s;
+ set bereq.between_bytes_timeout = 2s;
}
} -start
@@ -24,14 +24,22 @@ client c1 {
server s1 {
rxreq
send "HTTP/1.1 200 Ok\r\nConnection: close\r\n\r\n"
- delay 0.5
+ delay 1.0
send "Baba\n"
- delay 0.5
+ delay 1.0
+ send "Baba\n"
+ delay 1.0
+ send "Baba\n"
+ delay 1.0
+ send "Baba\n"
+ delay 1.0
send "Baba\n"
} -start
client c1 {
txreq
+ timeout 10
rxresp
expect resp.status == 200
+ expect resp.bodylen == 25
} -run
More information about the varnish-commit
mailing list