Mercurial > hg > nginx-tests
changeset 640:1d1eaf5ce064
Tests: adjusted proxy_cache_lock_ssi.t test timeouts.
Timeouts were relaxed to avoid occasional failures.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 03 Aug 2015 11:04:43 +0300 |
parents | 2b43ad56bce0 |
children | 45d89d9c38a9 |
files | proxy_cache_lock_ssi.t |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/proxy_cache_lock_ssi.t Thu Jul 30 13:26:50 2015 +0300 +++ b/proxy_cache_lock_ssi.t Mon Aug 03 11:04:43 2015 +0300 @@ -50,7 +50,7 @@ proxy_cache_lock on; proxy_cache_lock_timeout 100ms; - proxy_read_timeout 2s; + proxy_read_timeout 3s; add_header X-Msec $msec; } @@ -97,6 +97,6 @@ my $s = http_get('/locked', start => 1); like(http_get('/ssi.html'), qr/end/, 'cache lock ssi'); my ($start) = http_end($s) =~ /X-Msec: (\d+)/; -cmp_ok(time() - $start, '<=', 3, 'parallel execution after lock timeout'); +cmp_ok(time() - $start, '<=', 5, 'parallel execution after lock timeout'); ###############################################################################