X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Foptional_http-server.t;h=60f925936c37ddba966d4286447be879ba71cbdc;hp=4f006b21ff6ab107cc80df172b3666575bf259c4;hb=4ac0b9cb8e9043db8a95f44af685c782bf9426e7;hpb=a68314c2bb8ad7c2fc95f0008df7e4ebd35e5ebe diff --git a/t/optional_http-server.t b/t/optional_http-server.t index 4f006b2..60f9259 100644 --- a/t/optional_http-server.t +++ b/t/optional_http-server.t @@ -1,13 +1,16 @@ use strict; use warnings; +use Test::More; +BEGIN { + plan skip_all => 'set TEST_HTTP to enable this test' unless $ENV{TEST_HTTP}; +} + use File::Path; use FindBin; use IPC::Open3; use IO::Socket; -use Test::More; -plan skip_all => 'set TEST_HTTP to enable this test' unless $ENV{TEST_HTTP}; eval "use Catalyst::Devel 1.0"; plan skip_all => 'Catalyst::Devel required' if $@; eval "use File::Copy::Recursive";