diff stream_proxy_next_upstream.t @ 561:cd3e32d9997e

Tests: adjusted stream test timeouts, visible on win32.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 23 Apr 2015 15:55:38 +0300
parents 4cc65166509e
children ff49e1c00b35
line wrap: on
line diff
--- a/stream_proxy_next_upstream.t
+++ b/stream_proxy_next_upstream.t
@@ -42,7 +42,7 @@ stream {
         server 127.0.0.1:8089 backup;
     }
 
-    proxy_connect_timeout 2s;
+    proxy_connect_timeout 1s;
 
     server {
         listen      127.0.0.1:8081;
@@ -125,7 +125,7 @@ sub stream_read {
 	my ($buf);
 
 	$s->blocking(0);
-	if (IO::Select->new($s)->can_read(3)) {
+	if (IO::Select->new($s)->can_read(5)) {
 		$s->sysread($buf, 1024);
 	};