summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Sabino Mullane2009-08-27 17:04:09 +0000
committerGreg Sabino Mullane2009-08-27 17:04:09 +0000
commita5d59393e5c00107962172ad7847aa0b7a4a8c95 (patch)
treec7a0da302bbbdc5b253e9eba7517f2848bb728d3
parent424aeb8c10ee284ac76315780c4a7556b78dd82b (diff)
Add some delays so slow running 'make disttest' passes.
-rwxr-xr-xcheck_postgres.pl2
-rw-r--r--t/02_checkpoint.t4
-rw-r--r--t/02_replicate_row.t4
3 files changed, 5 insertions, 5 deletions
diff --git a/check_postgres.pl b/check_postgres.pl
index 8a826c7e3..755e3b9ac 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -3739,7 +3739,7 @@ sub check_logfile {
delete @{$db}{qw(ok slurp totaltime)};
my $badinfo = run_command("$funky", {failok => 1, target => $db} );
- my $MAXSLEEPTIME = 6;
+ my $MAXSLEEPTIME = 10;
my $SLEEP = 1;
my $found = 0;
LOGWAIT: {
diff --git a/t/02_checkpoint.t b/t/02_checkpoint.t
index b74547127..f1890f1f2 100644
--- a/t/02_checkpoint.t
+++ b/t/02_checkpoint.t
@@ -47,7 +47,7 @@ my $dbh = $cp->get_dbh();
$dbh->do('CHECKPOINT');
$dbh->commit();
$host =~ s/socket$//;
-my $result = $cp->run(qq{-w 20 --datadir="$host"});
+my $result = $cp->run(qq{-w 30 --datadir="$host"});
SKIP:
{
@@ -56,7 +56,7 @@ if ($result =~ /Date::Parse/) {
skip 'Cannot test checkpoint action unless Date::Parse module is installed', 6;
}
-like ($cp->run(qq{-w 20 --datadir="$host"}), qr{^$label OK}, $t);
+like ($cp->run(qq{-w 30 --datadir="$host"}), qr{^$label OK}, $t);
$t=qq{$S returns a warning when checkpoint older than warning option};
sleep 2;
diff --git a/t/02_replicate_row.t b/t/02_replicate_row.t
index f39871825..0cf32309f 100644
--- a/t/02_replicate_row.t
+++ b/t/02_replicate_row.t
@@ -140,7 +140,7 @@ else {
$t=qq{$S works when rows match, with MRTG output};
$dbh->commit();
if (fork) {
- is ($cp->run('DB2replicate-row', '-c 10 --output=MRTG -repinfo=reptest,id,1,foo,yin,yang'),
+ is ($cp->run('DB2replicate-row', '-c 20 --output=MRTG -repinfo=reptest,id,1,foo,yin,yang'),
qq{1\n0\n\n\n}, $t);
}
else {
@@ -154,7 +154,7 @@ else {
$t=qq{$S works when rows match, with simple output};
$dbh->commit();
if (fork) {
- $result = $cp->run('DB2replicate-row', '-c 10 --output=simple -repinfo=reptest,id,1,foo,yin,yang');
+ $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);