Mercurial > hg > nginx-tests
comparison upstream_least_conn.t @ 342:86fa2a5a37ea
Tests: adjust least_conn test timeouts.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 25 Sep 2013 21:29:53 +0400 |
parents | 71e275487aeb |
children | 98d9b06b087b |
comparison
equal
deleted
inserted
replaced
341:b86d60e4cb96 | 342:86fa2a5a37ea |
---|---|
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(1.5)"); | 182 Test::Nginx::log_core('||', "$port: sleep(3)"); |
183 select undef, undef, undef, 1.5; | 183 select undef, undef, undef, 3; |
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 |