From: Tomas Doran Date: Wed, 25 Aug 2010 23:39:56 +0000 (+0000) Subject: No idea why but lack of this causes a void context warning when run under the test... X-Git-Tag: 5.80026~7^2~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=a1825b3535a86788fade75e1a1fd083387c9c512 No idea why but lack of this causes a void context warning when run under the test harness --- diff --git a/t/live_show_internal_actions_warnings.t b/t/live_show_internal_actions_warnings.t index e68edca..0fe6ea3 100644 --- a/t/live_show_internal_actions_warnings.t +++ b/t/live_show_internal_actions_warnings.t @@ -18,7 +18,7 @@ use Catalyst::Test 'TestAppShowInternalActions'; my $last_warning; { local $SIG{__WARN__} = sub { $last_warning = shift }; - get('/'); + my $res = get('/'); } is( $last_warning, undef, 'there should be no warnings about uninitialized value' );