Skip to content

Commit e9b4c4e

Browse files
committed
In replication tests, sleep 2s and accept any result >= 1
1 parent 689c938 commit e9b4c4e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

t/02_replicate_row.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ if (fork) {
128128
like ($result, qr{^$label OK:.+Row was replicated}, $t);
129129
$result =~ /time=(\d+)/ or die 'No time?';
130130
my $time = $1;
131-
cmp_ok ($time, '>=', 3, $t);
131+
cmp_ok ($time, '>=', 1, $t);
132132
}
133133
else {
134-
sleep 3;
134+
sleep 2;
135135
$SQL = q{UPDATE reptest SET foo = 'yang' WHERE id = 1};
136136
$dbh2->do($SQL);
137137
$dbh2->commit();
@@ -160,10 +160,10 @@ if (fork) {
160160
$result = $cp->run('DB2replicate-row', '-c 20 --output=simple -repinfo=reptest,id,1,foo,yin,yang');
161161
$result =~ /^(\d+)/ or die 'No time?';
162162
my $time = $1;
163-
cmp_ok ($time, '>=', 3, $t);
163+
cmp_ok ($time, '>=', 1, $t);
164164
}
165165
else {
166-
sleep 3;
166+
sleep 2;
167167
$SQL = q{UPDATE reptest SET foo = 'yang' WHERE id = 1};
168168
$dbh2->do($SQL);
169169
$dbh2->commit();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy