changeset 678:99233cfefbbe

Tests: adjusted test timeouts. Made tests pass on hosts with moderately unstable system clock.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 07 Sep 2015 14:09:51 +0300
parents 5d258aa5ebc5
children b60c1a207675
files http_resolver.t image_filter_finalize.t
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/http_resolver.t
+++ b/http_resolver.t
@@ -55,7 +55,7 @@ http {
             proxy_pass  http://$host:8080/backend;
         }
         location /valid {
-            resolver    127.0.0.1:8081 valid=3s;
+            resolver    127.0.0.1:8081 valid=5s;
             proxy_pass  http://$host:8080/backend;
         }
         location /case {
@@ -208,7 +208,7 @@ sleep 2;
 like(http_host_header('ttl.example.net', '/valid'), qr/200 OK/,
 	'valid overrides ttl');
 
-sleep 2;
+sleep 4;
 
 # expired "valid" value causes nginx to make actual query
 
--- a/image_filter_finalize.t
+++ b/image_filter_finalize.t
@@ -37,7 +37,7 @@ http {
 
     proxy_cache_path %%TESTDIR%%/cache keys_zone=cache:1m;
 
-    limit_req_zone $binary_remote_addr zone=limit:1m rate=50r/m;
+    limit_req_zone $binary_remote_addr zone=limit:1m rate=25r/m;
 
     log_format time "$request_uri:$status:$upstream_response_time";
     access_log time.log time;