comparison lib/Test/Nginx.pm @ 339:9d0a2fa47ac6

Tests: change http timeout to 5s, imap/pop3/smtp to 3s. Excessive testing shows it should be enough to don't trigger false positive test suite failures on slow machines. Drop custom timeouts as previously used by dav_chunked.t accordingly.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 23 Sep 2013 22:54:43 +0400
parents d48de852157c
children 08bb2b3785a2
comparison
equal deleted inserted replaced
338:8f0010dc4b09 339:9d0a2fa47ac6
429 my $reply; 429 my $reply;
430 430
431 eval { 431 eval {
432 local $SIG{ALRM} = sub { die "timeout\n" }; 432 local $SIG{ALRM} = sub { die "timeout\n" };
433 local $SIG{PIPE} = sub { die "sigpipe\n" }; 433 local $SIG{PIPE} = sub { die "sigpipe\n" };
434 alarm($extra{timeout} || 2); 434 alarm(5);
435 435
436 my $s = $extra{socket} || IO::Socket::INET->new( 436 my $s = $extra{socket} || IO::Socket::INET->new(
437 Proto => 'tcp', 437 Proto => 'tcp',
438 PeerAddr => '127.0.0.1:8080' 438 PeerAddr => '127.0.0.1:8080'
439 ) 439 )