7 use lib "$FindBin::Bin/lib";
9 use Storable qw/lock_store lock_retrieve/;
12 use Catalyst::Test 'PluginTestApp';
14 our $STATE = "$FindBin::Bin/lib/TestApp/scheduler.state";
16 # hack the last event check to make all events execute immediately
17 my $state = { last_check => 0 };
18 lock_store $state, $STATE;
20 # test that the plugin event executes
22 ok( my $res = request('http://localhost/'), 'request ok' );
23 is( $res->content, 'default', 'response ok' );
24 is( -e "$FindBin::Bin/lib/TestApp/plugin_test.log", 1, 'every_minute executed ok' );
25 unlink "$FindBin::Bin/lib/TestApp/plugin_test.log";