diff 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
line wrap: on
line diff
--- a/lib/Test/Nginx.pm
+++ b/lib/Test/Nginx.pm
@@ -431,7 +431,7 @@ sub http($;%) {
 	eval {
 		local $SIG{ALRM} = sub { die "timeout\n" };
 		local $SIG{PIPE} = sub { die "sigpipe\n" };
-		alarm($extra{timeout} || 2);
+		alarm(5);
 
 		my $s = $extra{socket} || IO::Socket::INET->new(
 			Proto => 'tcp',