X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F07plugin.t;fp=t%2F07plugin.t;h=0cb278c58f868f016bd4c5013fb878b8d771a03d;hb=ba2735b6164f953e9d590a8671aec8799e615327;hp=249708f4f79c2110eb8f527fe3d4837b4fb972fa;hpb=4aa6d1df60ed0badf3b74ec4ffc3ce45074c92be;p=catagits%2FCatalyst-Plugin-Scheduler.git diff --git a/t/07plugin.t b/t/07plugin.t index 249708f..0cb278c 100644 --- a/t/07plugin.t +++ b/t/07plugin.t @@ -5,17 +5,14 @@ use warnings; use FindBin; use lib "$FindBin::Bin/lib"; -use Test::More; -use Storable qw/lock_store lock_retrieve/; - -plan tests => 3; +use Test::More tests => 3; use Catalyst::Test 'PluginTestApp'; our $STATE = "$FindBin::Bin/lib/TestApp/scheduler.state"; +our $BASE = 'Catalyst::Plugin::Scheduler::Base'; # hack the last event check to make all events execute immediately -my $state = { last_check => 0 }; -lock_store $state, $STATE; +$BASE->_last_check_time( 0 ); # test that the plugin event executes {