comparison upstream_least_conn.t @ 400:98d9b06b087b

Tests: adjust least_conn test timeouts.
author Maxim Dounin <mdounin@mdounin.ru>
date Fri, 16 May 2014 20:06:35 +0400
parents 86fa2a5a37ea
children 60888e2c3f5a
comparison
equal deleted inserted replaced
399:c6ab68c41c8c 400:98d9b06b087b
177 } 177 }
178 178
179 $uri = $1 if $headers =~ /^\S+\s+([^ ]+)\s+HTTP/i; 179 $uri = $1 if $headers =~ /^\S+\s+([^ ]+)\s+HTTP/i;
180 180
181 if ($uri eq '/w' && $port == 8081) { 181 if ($uri eq '/w' && $port == 8081) {
182 Test::Nginx::log_core('||', "$port: sleep(3)"); 182 Test::Nginx::log_core('||', "$port: sleep(2.5)");
183 select undef, undef, undef, 3; 183 select undef, undef, undef, 2.5;
184 } 184 }
185 185
186 Test::Nginx::log_core('||', "$port: response, 200"); 186 Test::Nginx::log_core('||', "$port: response, 200");
187 print $client <<EOF; 187 print $client <<EOF;
188 HTTP/1.1 200 OK 188 HTTP/1.1 200 OK