Changes:
[catagits/Catalyst-Plugin-Scheduler.git] / t / 07plugin.t
index 249708f..0cb278c 100644 (file)
@@ -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
 {