Mercurial > hg > nginx-tests
changeset 268:8dac281ff522
Tests: increase timeout for putting big chunk in dav_chunked.t.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Wed, 20 Mar 2013 18:20:28 +0400 |
parents | 9cd1a8dd47fc |
children | 970bb423e59f |
files | dav_chunked.t lib/Test/Nginx.pm |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/dav_chunked.t Wed Mar 20 17:27:01 2013 +0400 +++ b/dav_chunked.t Wed Mar 20 18:20:28 2013 +0400 @@ -90,7 +90,7 @@ my $body = ('a' . CRLF . '1234567890' . CRLF) x 1024 . '0' . CRLF . CRLF; -$r = http(<<EOF); +$r = http(<<EOF, timeout => 5); PUT /file HTTP/1.1 Host: localhost Connection: close
--- a/lib/Test/Nginx.pm Wed Mar 20 17:27:01 2013 +0400 +++ b/lib/Test/Nginx.pm Wed Mar 20 18:20:28 2013 +0400 @@ -405,7 +405,7 @@ eval { local $SIG{ALRM} = sub { die "timeout\n" }; local $SIG{PIPE} = sub { die "sigpipe\n" }; - alarm(2); + alarm($extra{timeout} || 2); my $s = $extra{socket} || IO::Socket::INET->new( Proto => 'tcp', PeerAddr => '127.0.0.1:8080'