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
+++ 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');
 
 ###############################################################################