Skip to content

Commit cdbfdf6

Browse files
committed
Fix unit tests
That was necessary with the two earlier reverts.
1 parent a01279f commit cdbfdf6

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

check_pgactivity

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ use Pod::Usage;
4949
use Scalar::Util qw(looks_like_number);
5050
use Fcntl qw(:flock);
5151
use Storable qw(retrieve store);
52+
use Time::HiRes qw(gettimeofday tv_interval);
5253

5354
use Config;
5455
use FindBin;

t/01-bgwriter.t

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ $node->command_checks_all( [
3737
'first basic check'
3838
);
3939

40+
sleep 1;
41+
4042
# Second check. Returns perfdata
4143
$node->command_checks_all( [
4244
'./check_pgactivity', '--service' => 'bgwriter',

0 commit comments

Comments
 (0)