From 9352be491fbc7628860a415569065f633947c197 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Fri, 24 Jul 2009 10:14:05 -0400 Subject: [PATCH] Allow more leeway in checkpoint timeout tests. --- t/02_checkpoint.t | 6 +++--- 1 file 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); } -- 2.39.5