From: Greg Sabino Mullane Date: Fri, 24 Jul 2009 14:14:05 +0000 (-0400) Subject: Allow more leeway in checkpoint timeout tests. X-Git-Tag: 2.9.5~2 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=9352be491fbc7628860a415569065f633947c197;p=check_postgres.git Allow more leeway in checkpoint timeout tests. --- 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); }