# HG changeset patch # User Sergey Kandaurov # Date 1438589083 -10800 # Node ID 1d1eaf5ce064f9096054e239897d1b82ca9d1814 # Parent 2b43ad56bce0c69f4f5d4bc0a2f041cd84b8d343 Tests: adjusted proxy_cache_lock_ssi.t test timeouts. Timeouts were relaxed to avoid occasional failures. diff --git a/proxy_cache_lock_ssi.t b/proxy_cache_lock_ssi.t --- 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'); ###############################################################################