X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Fpsgi_file_testapp_engine_plackup_compat.t;h=4f5a2ead2069f539bcaf14b2e054b9cdd38b152c;hp=9af4910e66ad98b2c84ca4386ae363b0c9139f1c;hb=2a56ace924b296189e0bf5864d6a3b92809fef66;hpb=a7536db740d85fa6098a91f0088a9030b8e1c954 diff --git a/t/psgi_file_testapp_engine_plackup_compat.t b/t/psgi_file_testapp_engine_plackup_compat.t index 9af4910..4f5a2ea 100644 --- a/t/psgi_file_testapp_engine_plackup_compat.t +++ b/t/psgi_file_testapp_engine_plackup_compat.t @@ -4,13 +4,13 @@ use FindBin qw/$Bin/; use lib "$Bin/lib"; use Test::More; -use Test::Exception; +use Test::Fatal; use Plack::Test; use TestApp; use HTTP::Request::Common; plan skip_all => "Catalyst::Engine::PSGI required for this test" - unless eval { require Catalyst::Engine::PSGI; 1; }; + unless eval { local $SIG{__WARN__} = sub{}; require Catalyst::Engine::PSGI; 1; }; my $warning; local $SIG{__WARN__} = sub { $warning = $_[0] }; @@ -23,7 +23,7 @@ like $warning, qr/You are running Catalyst\:\:Engine\:\:PSGI/, test_psgi $app, sub { my $cb = shift; - lives_ok { + is exception { my $TIMEOUT_IN_SECONDS = 5; local $SIG{ALRM} = sub { die "alarm\n" }; alarm($TIMEOUT_IN_SECONDS); @@ -34,7 +34,7 @@ test_psgi $app, sub { alarm(0); 1 - } q{app didn't die or timeout}; + }, undef, q{app didn't die or timeout}; }; done_testing;