Skip tests that use ctx_request when live
Tomas Doran [Mon, 6 Feb 2012 23:03:06 +0000 (23:03 +0000)]
t/aggregate/live_container_custom_container_nosugar.t
t/aggregate/live_container_custom_container_sugar.t

index 79eaff1..4709113 100644 (file)
@@ -2,6 +2,12 @@ use warnings;
 use strict;
 use FindBin '$Bin';
 use lib "$Bin/../lib";
+BEGIN {
+    if ( $ENV{CATALYST_SERVER} ) {
+        plan skip_all => 'This test does not run live';
+        exit 0;
+    }
+}
 use TestCustomContainer;
 
 TestCustomContainer->new(sugar => 0);
index 0a6ee67..662e3dd 100644 (file)
@@ -2,6 +2,13 @@ use warnings;
 use strict;
 use FindBin '$Bin';
 use lib "$Bin/../lib";
+BEGIN {
+    if ( $ENV{CATALYST_SERVER} ) {
+        plan skip_all => 'This test does not run live';
+        exit 0;
+    }
+}
+
 use TestCustomContainer;
 
 TestCustomContainer->new(sugar => 1);