Mercurial > hg > nginx-tests
diff stream_proxy_ssl.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 | 3b25ee897439 |
children | e9064d691790 |
line wrap: on
line diff
--- a/stream_proxy_ssl.t +++ b/stream_proxy_ssl.t @@ -37,7 +37,7 @@ events { stream { proxy_ssl on; proxy_ssl_session_reuse on; - proxy_connect_timeout 1s; + proxy_connect_timeout 2s; server { listen 127.0.0.1:8080; @@ -106,7 +106,7 @@ like(http_get('/', socket => getconn('12 my $s = http('', start => 1); -sleep 2; +sleep 3; like(http_get('/', socket => $s), qr/200 OK/, 'proxy connect timeout');