Mercurial > hg > nginx-tests
diff proxy_cache_lock_ssi.t @ 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 | e36b267021e3 |
children | e9064d691790 |
line wrap: on
line diff
--- a/proxy_cache_lock_ssi.t +++ b/proxy_cache_lock_ssi.t @@ -50,7 +50,7 @@ http { 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 @@ EOF 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'); ###############################################################################