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=3578c6c7a44cae1d9ae400300419ee25b3572c7a;hb=2a56ace924b296189e0bf5864d6a3b92809fef66;hpb=5a4ce75eb7c71dc6d3190a2377d4aef3abd10c78 diff --git a/t/psgi_file_testapp_engine_plackup_compat.t b/t/psgi_file_testapp_engine_plackup_compat.t index 3578c6c..4f5a2ea 100644 --- a/t/psgi_file_testapp_engine_plackup_compat.t +++ b/t/psgi_file_testapp_engine_plackup_compat.t @@ -4,7 +4,7 @@ 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; @@ -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;