From: Andy Grundman Date: Wed, 31 Oct 2007 22:30:49 +0000 (+0000) Subject: Skip the live_stats test on remote servers X-Git-Tag: 5.7099_04~109 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=b6b1bcadec1d2253d97125c0a20bf0a452850566 Skip the live_stats test on remote servers --- diff --git a/t/live_stats.t b/t/live_stats.t index ff7fca8..48bffd1 100644 --- a/t/live_stats.t +++ b/t/live_stats.t @@ -6,9 +6,16 @@ use warnings; use FindBin; use lib "$FindBin::Bin/lib"; -use Test::More tests => 5; +use Test::More; use Catalyst::Test 'TestAppStats'; +if ( $ENV{CATALYST_SERVER} ) { + plan skip_all => 'Using remote server'; +} +else { + plan tests => 5; +} + { ok( my $response = request('http://localhost/'), 'Request' ); ok( $response->is_success, 'Response Successful 2xx' );