From: Tomas Doran Date: Mon, 6 Feb 2012 23:03:06 +0000 (+0000) Subject: Skip tests that use ctx_request when live X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=1310b91c3c6e304f3e35396dd475ccc4eb8e4f52 Skip tests that use ctx_request when live --- diff --git a/t/aggregate/live_container_custom_container_nosugar.t b/t/aggregate/live_container_custom_container_nosugar.t index 79eaff1..4709113 100644 --- a/t/aggregate/live_container_custom_container_nosugar.t +++ b/t/aggregate/live_container_custom_container_nosugar.t @@ -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); diff --git a/t/aggregate/live_container_custom_container_sugar.t b/t/aggregate/live_container_custom_container_sugar.t index 0a6ee67..662e3dd 100644 --- a/t/aggregate/live_container_custom_container_sugar.t +++ b/t/aggregate/live_container_custom_container_sugar.t @@ -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);