fixed author side test becase Test::TCP changed its interface
John Napiorkowski [Tue, 23 Jul 2013 21:09:43 +0000 (17:09 -0400)]
Makefile.PL
t/author/http-server.t

index fd8412a..74aac70 100644 (file)
@@ -98,7 +98,7 @@ else {
 push(@author_requires, 'CatalystX::LeakChecker', '0.05');
 push(@author_requires, 'Catalyst::Devel', '1.0'); # For http server test
 push(@author_requires, 'Test::WWW::Mechanize::Catalyst', '0.51');
-push(@author_requires, 'Test::TCP', '1.27'); # ditto, ships Net::EmptyPort
+push(@author_requires, 'Test::TCP', '2.00'); # ditto, ships Net::EmptyPort
 
 author_tests('t/author');
 author_requires(
index 7f886ca..2861c27 100644 (file)
@@ -2,6 +2,7 @@ use strict;
 use warnings;
 
 use Test::More tests => 1;
+use Test::TCP;
 
 use File::Path;
 use FindBin;
@@ -96,7 +97,7 @@ if ($^O eq 'MSWin32') {
 sub wait_port_timeout {
     my ($port, $timeout) = @_;
 
-    wait_port($port, 0.1, $timeout * 10) and return;
+    wait_port($port, $timeout * 10) and return;
 
     die "Server did not start within $timeout seconds";
 }