Skip the live_stats test on remote servers
Andy Grundman [Wed, 31 Oct 2007 22:30:49 +0000 (22:30 +0000)]
t/live_stats.t

index ff7fca8..48bffd1 100644 (file)
@@ -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' );