Mercurial > hg > nginx-tests
diff http_resolver.t @ 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 | a04b8b9537cd |
children | a6764c2a9f12 |
line wrap: on
line diff
--- a/http_resolver.t Fri Sep 04 15:39:39 2015 +0300 +++ b/http_resolver.t Mon Sep 07 14:09:51 2015 +0300 @@ -55,7 +55,7 @@ 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 @@ 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