Skip to content

Commit

Permalink
In replication tests, sleep 2s and accept any result >= 1
Browse files Browse the repository at this point in the history
  • Loading branch information
df7cb committed Nov 1, 2017
1 parent 689c938 commit e9b4c4e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions t/02_replicate_row.t
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ if (fork) {
like ($result, qr{^$label OK:.+Row was replicated}, $t);
$result =~ /time=(\d+)/ or die 'No time?';
my $time = $1;
cmp_ok ($time, '>=', 3, $t);
cmp_ok ($time, '>=', 1, $t);
}
else {
sleep 3;
sleep 2;
$SQL = q{UPDATE reptest SET foo = 'yang' WHERE id = 1};
$dbh2->do($SQL);
$dbh2->commit();
Expand Down Expand Up @@ -160,10 +160,10 @@ if (fork) {
$result = $cp->run('DB2replicate-row', '-c 20 --output=simple -repinfo=reptest,id,1,foo,yin,yang');
$result =~ /^(\d+)/ or die 'No time?';
my $time = $1;
cmp_ok ($time, '>=', 3, $t);
cmp_ok ($time, '>=', 1, $t);
}
else {
sleep 3;
sleep 2;
$SQL = q{UPDATE reptest SET foo = 'yang' WHERE id = 1};
$dbh2->do($SQL);
$dbh2->commit();
Expand Down

0 comments on commit e9b4c4e

Please sign in to comment.