Skip to content

Commit

Permalink
twiddle tests to mock time instead of doing an actual sleep, so virtu…
Browse files Browse the repository at this point in the history
…alisation doesn't utterly banjax everything
  • Loading branch information
DrHyde committed Oct 3, 2021
1 parent 407e597 commit d6f1915
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ WriteMakefile(
}
},
VERSION => '1.1.1',
PREREQ_PM => { Time::HiRes => 1.2 }
PREREQ_PM => {
Time::HiRes => 1.2,
Test::Mock::Time => 0,
}
);
1 change: 1 addition & 0 deletions t/all.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use strict;
BEGIN { $| = 1; print "1..4\n"; }
END { print "not ok 1\n" unless $loaded; }

use Test::Mock::Time;
use Tie::Scalar::Decay;

$loaded=1;
Expand Down

0 comments on commit d6f1915

Please sign in to comment.