From: Marcus Ramberg Date: Thu, 6 Jul 2006 22:08:03 +0000 (+0000) Subject: make most http_server tests run X-Git-Tag: 5.7099_04~407 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=5c9c810dc09594a364ea85a023e8803bbbd11853 make most http_server tests run --- diff --git a/t/optional_http-server-restart.t b/t/optional_http-server-restart.t index b20944c..008e0b2 100644 --- a/t/optional_http-server-restart.t +++ b/t/optional_http-server-restart.t @@ -11,10 +11,12 @@ use LWP::Simple; use IO::Socket; use Test::More; use Time::HiRes qw/sleep/; -eval "use File::Copy::Recursive"; +eval "use Catalyst::Devel 1.0;"; plan skip_all => 'set TEST_HTTP to enable this test' unless $ENV{TEST_HTTP}; -plan skip_all => 'File::Copy::Recursive required' if $@; +plan skip_all => 'Catalyst::Devel required' if $@; + +use File::Copy::Recursive; plan tests => 40; diff --git a/t/optional_http-server.t b/t/optional_http-server.t index 8219f3f..5516b66 100644 --- a/t/optional_http-server.t +++ b/t/optional_http-server.t @@ -7,12 +7,14 @@ use File::Path; use FindBin; use IO::Socket; use Test::More; -eval "use File::Copy::Recursive"; plan skip_all => 'set TEST_HTTP to enable this test' unless $ENV{TEST_HTTP}; -plan skip_all => 'File::Copy::Recursive required' if $@; +eval "use Catalyst::Devel 1.0"; +plan skip_all => 'Catalyst::Devel required' if $@; plan tests => 1; +use File::Copy::Recursive; + # clean up rmtree "$FindBin::Bin/../t/tmp" if -d "$FindBin::Bin/../t/tmp";