Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d03eeab

Browse files
committedMay 31, 2021
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.
1 parent 12cc956 commit d03eeab

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
 

‎src/test/perl/PostgresNode.pm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ PostgresNode - class representing PostgreSQL server instance
3131
# as well as the psql exit code. Pass some extra psql
3232
# options. If there's an error from psql raise an exception.
3333
my ($stdout, $stderr, $timed_out);
34-
my $cmdret = $node->psql('postgres', 'SELECT pg_sleep(60)',
34+
my $cmdret = $node->psql('postgres', 'SELECT pg_sleep(600)',
3535
stdout => \$stdout, stderr => \$stderr,
36-
timeout => 30, timed_out => \$timed_out,
36+
timeout => 180, timed_out => \$timed_out,
3737
extra_params => ['--single-transaction'],
3838
on_error_die => 1)
3939
print "Sleep timed out" if $timed_out;
@@ -1613,9 +1613,9 @@ If given, it must be an array reference containing additional parameters to B<ps
16131613
e.g.
16141614
16151615
my ($stdout, $stderr, $timed_out);
1616-
my $cmdret = $node->psql('postgres', 'SELECT pg_sleep(60)',
1616+
my $cmdret = $node->psql('postgres', 'SELECT pg_sleep(600)',
16171617
stdout => \$stdout, stderr => \$stderr,
1618-
timeout => 30, timed_out => \$timed_out,
1618+
timeout => 180, timed_out => \$timed_out,
16191619
extra_params => ['--single-transaction'])
16201620
16211621
will set $cmdret to undef and $timed_out to a true value.

‎src/test/recovery/t/010_logical_decoding_timelines.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
($ret, $stdout, $stderr) = $node_replica->psql(
159159
'postgres',
160160
"SELECT data FROM pg_logical_slot_peek_changes('before_basebackup', NULL, NULL, 'include-xids', '0', 'skip-empty-xacts', '1');",
161-
timeout => 30);
161+
timeout => 180);
162162
is($ret, 0, 'replay from slot before_basebackup succeeds');
163163

164164
my $final_expected_output_bb = q(BEGIN

0 commit comments

Comments
 (0)
Failed to load comments.