X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Flive_component_controller_context_closure.t;h=69fa5046d1b49ff6ba222d62a6c77dc5722731f6;hp=2d4b894e25e28350c9a1e14ffe2b47c6acf12ce0;hb=df5a34cf867697901081167ba10f2f521e5c7cce;hpb=6561feaea6cb3f0a84e97fc6f2bc55788fe8c393 diff --git a/t/live_component_controller_context_closure.t b/t/live_component_controller_context_closure.t index 2d4b894..69fa504 100644 --- a/t/live_component_controller_context_closure.t +++ b/t/live_component_controller_context_closure.t @@ -14,12 +14,16 @@ use FindBin; use lib "$FindBin::Bin/lib"; BEGIN { $::setup_leakchecker = 1 } -local $SIG{__WARN__} = sub { return if $_[0] =~ /Unhandled type: GLOB/; warn $_[0] }; +local $SIG{__WARN__} = sub { return if $_[0] =~ /Unhandled type: (GLOB|REGEXP)/; warn $_[0] }; use Catalyst::Test 'TestApp'; { my ($resp, $ctx) = ctx_request('/contextclosure/normal_closure'); ok($resp->is_success); + #is($ctx->count_leaks, 1); + # FIXME: find out why this changed from 1 to 2 after 52af51596d + # ^^ probably has something to do with env being in Engine and Request - JNAP + # ^^ I made the env in Engine a weak ref, should help until we can remove it is($ctx->count_leaks, 1); }