From: John Napiorkowski Date: Tue, 23 Jul 2013 21:09:43 +0000 (-0400) Subject: fixed author side test becase Test::TCP changed its interface X-Git-Tag: 5.90050~1^2~61 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=310e2c0b68a06d484fb469c6fc35c5afd2d54f2b fixed author side test becase Test::TCP changed its interface --- diff --git a/Makefile.PL b/Makefile.PL index fd8412a..74aac70 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -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( diff --git a/t/author/http-server.t b/t/author/http-server.t index 7f886ca..2861c27 100644 --- a/t/author/http-server.t +++ b/t/author/http-server.t @@ -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"; }