diff options
author | Greg Sabino Mullane | 2009-07-24 14:14:05 +0000 |
---|---|---|
committer | Greg Sabino Mullane | 2009-07-24 14:14:05 +0000 |
commit | 9352be491fbc7628860a415569065f633947c197 (patch) | |
tree | 2f18eb14f8e785653a237169f7c1329b6cc187bc | |
parent | 592984fbad81a42bf9c91d250b0211177fb864f5 (diff) |
Allow more leeway in checkpoint timeout tests.
-rw-r--r-- | t/02_checkpoint.t | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/t/02_checkpoint.t b/t/02_checkpoint.t index 1ee870a59..ec76dfb83 100644 --- a/t/02_checkpoint.t +++ b/t/02_checkpoint.t @@ -66,13 +66,13 @@ $t=qq{$S returns a critical when checkpoint older than critical option}; like ($cp->run(qq{-c 1 --datadir="$host"}), qr{^$label CRITICAL:}, $t); $t=qq{$S returns the correct number of seconds}; -like ($cp->run(qq{-c 1 --datadir="$host"}), qr{was \d seconds ago}, $t); +like ($cp->run(qq{-c 1 --datadir="$host"}), qr{was \d+ seconds ago}, $t); $t=qq{$S returns the expected output for MRTG}; -like ($cp->run(qq{-c 1 --output=MRTG --datadir="$host"}), qr{^\d\n0\n\nLast checkpoint was \d seconds ago}, $t); +like ($cp->run(qq{-c 1 --output=MRTG --datadir="$host"}), qr{^\d\n0\n\nLast checkpoint was \d+ seconds ago}, $t); $t=qq{$S returns the expected output for MRTG}; -like ($cp->run(qq{-c 199 --output=MRTG --datadir="$host"}), qr{^\d\n0\n\nLast checkpoint was \d seconds ago}, $t); +like ($cp->run(qq{-c 199 --output=MRTG --datadir="$host"}), qr{^\d\n0\n\nLast checkpoint was \d+ seconds ago}, $t); } |