t/02_txn_time.t: Allow some time slack
authorChristoph Berg <[email protected]>
Mon, 26 Sep 2016 09:41:07 +0000 (11:41 +0200)
committerChristoph Berg <[email protected]>
Mon, 26 Sep 2016 09:41:07 +0000 (11:41 +0200)
t/02_txn_time.t

index d743fe1f95ec150ff24d2cd7cf55d7f3c80d70fe..cd196233421b3b51afb40fdd6b06c695876aadaa 100644 (file)
@@ -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" : "<IDLE> in transaction";