X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Fcustom_live_component_controller_action_auto_doublebug.t;h=b1417a0ed4a88bb54e5c9c8c6c0d273194aa77d4;hp=6d8eb994ae94618f458ef6a44ee4db16b01942e0;hb=cf013d38de7a842c70c9d237a9ee3c18f0a42948;hpb=0187a79d378521038674bfd4728f57f8f9353d26 diff --git a/t/custom_live_component_controller_action_auto_doublebug.t b/t/custom_live_component_controller_action_auto_doublebug.t index 6d8eb99..b1417a0 100644 --- a/t/custom_live_component_controller_action_auto_doublebug.t +++ b/t/custom_live_component_controller_action_auto_doublebug.t @@ -8,7 +8,7 @@ use lib "$FindBin::Bin/lib"; our $iters; -BEGIN { $iters = $ENV{CAT_BENCH_ITERS} || 2; } +BEGIN { $iters = $ENV{CAT_BENCH_ITERS} || 1; } use Test::More tests => 3*$iters; use Catalyst::Test 'TestAppDoubleAutoBug'; @@ -24,18 +24,25 @@ else { } sub run_tests { + SKIP: { - my @expected = qw[ - TestAppDoubleAutoBug->auto - TestAppDoubleAutoBug->default - TestAppDoubleAutoBug->end - ]; + if ( $ENV{CATALYST_SERVER} ) { + skip 'Using remote server', 3; + } + + { + my @expected = qw[ + TestAppDoubleAutoBug::Controller::Root->auto + TestAppDoubleAutoBug::Controller::Root->default + TestAppDoubleAutoBug::Controller::Root->end + ]; - my $expected = join( ", ", @expected ); + my $expected = join( ", ", @expected ); - ok( my $response = request('http://localhost/action/auto/one'), 'auto + local' ); - is( $response->header('X-Catalyst-Executed'), - $expected, 'Executed actions' ); - is( $response->content, 'default, auto=1', 'Content OK' ); + ok( my $response = request('http://localhost/action/auto/one'), 'auto + local' ); + is( $response->header('X-Catalyst-Executed'), + $expected, 'Executed actions' ); + is( $response->content, 'default, auto=1', 'Content OK' ); + } } }