Mercurial > hg > nginx-tests
diff proxy.t @ 795:122cd3a82367
Tests: fixed 'proxy connect timeout' test timeouts on slow hosts.
The previous value might not be enough to connect.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 07 Dec 2015 13:38:52 +0300 |
parents | 984bfe661cce |
children | eca9b1d19021 |
line wrap: on
line diff
--- a/proxy.t +++ b/proxy.t @@ -42,7 +42,7 @@ http { location / { proxy_pass http://127.0.0.1:8081; proxy_read_timeout 1s; - proxy_connect_timeout 1s; + proxy_connect_timeout 2s; } location /var { @@ -68,7 +68,7 @@ like(http_get('/var?b=127.0.0.1:8081/'), my $s = http('', start => 1); -sleep 2; +sleep 3; like(http_get('/', socket => $s), qr/200 OK/, 'proxy connect timeout');