From: Christoph Berg Date: Mon, 26 Sep 2016 09:41:07 +0000 (+0200) Subject: t/02_txn_time.t: Allow some time slack X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=1b5e40ad48cbff705e822521b6a0c591521fcd9d;p=check_postgres.git t/02_txn_time.t: Allow some time slack --- diff --git a/t/02_txn_time.t b/t/02_txn_time.t index d743fe1f9..cd1962334 100644 --- a/t/02_txn_time.t +++ b/t/02_txn_time.t @@ -73,7 +73,7 @@ $t = qq{$S identifies a one-second running txn}; my $idle_dbh = $cp->test_database_handle(); $idle_dbh->do('SELECT 1'); sleep(1); -like ($cp->run(q{-w 0}), qr{longest txn: 1s}, $t); +like ($cp->run(q{-w 0}), qr{longest txn: [12]s}, $t); $t .= ' (MRTG)'; my $query_patten = ($ver >= 90200) ? "SELECT 1" : " in transaction";