summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2021-05-31 00:29:58 -0700
committerNoah Misch <noah@leadboat.com>2021-05-31 00:30:38 -0700
commitf9e35ff236c9d12c4c30a17f2c09cad56dbf65bb (patch)
tree058975ca8f95ff4daef3864534640059c525c828 /src
parentd5d89629cac9a953aaf1e6f99dd15cb468e747fe (diff)
Raise a timeout to 180s, in test 010_logical_decoding_timelines.pl.
Per buildfarm member hornet. Also, update Pod documentation showing the lower value. Back-patch to v10, where the test first appeared.
Diffstat (limited to 'src')
-rw-r--r--src/test/perl/PostgresNode.pm8
-rw-r--r--src/test/recovery/t/010_logical_decoding_timelines.pl2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/test/perl/PostgresNode.pm b/src/test/perl/PostgresNode.pm
index 16fa2036615..f44fbc5b36a 100644
--- a/src/test/perl/PostgresNode.pm
+++ b/src/test/perl/PostgresNode.pm
@@ -29,9 +29,9 @@ PostgresNode - class representing PostgreSQL server instance
# as well as the psql exit code. Pass some extra psql
# options. If there's an error from psql raise an exception.
my ($stdout, $stderr, $timed_out);
- my $cmdret = $node->psql('postgres', 'SELECT pg_sleep(60)',
+ my $cmdret = $node->psql('postgres', 'SELECT pg_sleep(600)',
stdout => \$stdout, stderr => \$stderr,
- timeout => 30, timed_out => \$timed_out,
+ timeout => 180, timed_out => \$timed_out,
extra_params => ['--single-transaction'],
on_error_die => 1)
print "Sleep timed out" if $timed_out;
@@ -1203,9 +1203,9 @@ If given, it must be an array reference containing additional parameters to B<ps
e.g.
my ($stdout, $stderr, $timed_out);
- my $cmdret = $node->psql('postgres', 'SELECT pg_sleep(60)',
+ my $cmdret = $node->psql('postgres', 'SELECT pg_sleep(600)',
stdout => \$stdout, stderr => \$stderr,
- timeout => 30, timed_out => \$timed_out,
+ timeout => 180, timed_out => \$timed_out,
extra_params => ['--single-transaction'])
will set $cmdret to undef and $timed_out to a true value.
diff --git a/src/test/recovery/t/010_logical_decoding_timelines.pl b/src/test/recovery/t/010_logical_decoding_timelines.pl
index bc9c0620d60..b9d2638815a 100644
--- a/src/test/recovery/t/010_logical_decoding_timelines.pl
+++ b/src/test/recovery/t/010_logical_decoding_timelines.pl
@@ -155,7 +155,7 @@ like(
($ret, $stdout, $stderr) = $node_replica->psql(
'postgres',
"SELECT data FROM pg_logical_slot_peek_changes('before_basebackup', NULL, NULL, 'include-xids', '0', 'skip-empty-xacts', '1');",
- timeout => 30);
+ timeout => 180);
is($ret, 0, 'replay from slot before_basebackup succeeds');
my $final_expected_output_bb = q(BEGIN