diff 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 984bfe661cce
children e9064d691790
line wrap: on
line diff
--- a/proxy_ssl.t
+++ b/proxy_ssl.t
@@ -62,7 +62,7 @@ http {
 
         location /timeout {
             proxy_pass https://127.0.0.1:8081/;
-            proxy_connect_timeout 1s;
+            proxy_connect_timeout 2s;
         }
     }
 }
@@ -100,7 +100,7 @@ like(http_get('/ssl_reuse'), qr/200 OK.*
 
 my $s = http('', start => 1);
 
-sleep 2;
+sleep 3;
 
 like(http_get('/timeout', socket => $s), qr/200 OK/, 'proxy connect timeout');