From 3671e9b9643543510337d9c1724122ecd78780cd Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 27 Jul 2010 07:11:04 +0000 Subject: t0020: speed up rate limited tests They were taking long enough to be annoying :< --- t/t0020-large-sendfile-response.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/t0020-large-sendfile-response.sh b/t/t0020-large-sendfile-response.sh index df9ab23..18b0bf5 100755 --- a/t/t0020-large-sendfile-response.sh +++ b/t/t0020-large-sendfile-response.sh @@ -46,7 +46,7 @@ t_begin "send a batch of abortive HTTP/1.1 requests in parallel" && { do rm -f $i ( - curl -sSf --max-time 5 --limit-rate 1K \ + curl -sSf --max-time 2 --limit-rate 1K \ http://$listen/random_blob >/dev/null || echo ok > $i ) & done @@ -77,11 +77,11 @@ t_begin "check proc to ensure file is closed properly (Linux only)" && { t_begin "send a bunch of HTTP/1.1 requests in parallel" && { ( - curl -sSf --limit-rate 1M http://$listen/random_blob | \ + curl -sSf --limit-rate 5M http://$listen/random_blob | \ rsha1 > $slow_a ) & ( - curl -sSf --limit-rate 750K http://$listen/random_blob | \ + curl -sSf --limit-rate 6M http://$listen/random_blob | \ rsha1 > $slow_b ) & for i in $a $b $c -- cgit v1.2.3-24-ge0c7