Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 53b33e2

Browse files
committed
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 82248f2 commit 53b33e2

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
@@ -29,9 +29,9 @@ PostgresNode - class representing PostgreSQL server instance
2929
# as well as the psql exit code. Pass some extra psql
3030
# options. If there's an error from psql raise an exception.
3131
my ($stdout, $stderr, $timed_out);
32-
my $cmdret = $node->psql('postgres', 'SELECT pg_sleep(60)',
32+
my $cmdret = $node->psql('postgres', 'SELECT pg_sleep(600)',
3333
stdout => \$stdout, stderr => \$stderr,
34-
timeout => 30, timed_out => \$timed_out,
34+
timeout => 180, timed_out => \$timed_out,
3535
extra_params => ['--single-transaction'],
3636
on_error_die => 1)
3737
print "Sleep timed out" if $timed_out;
@@ -1372,9 +1372,9 @@ If given, it must be an array reference containing additional parameters to B<ps
13721372
e.g.
13731373
13741374
my ($stdout, $stderr, $timed_out);
1375-
my $cmdret = $node->psql('postgres', 'SELECT pg_sleep(60)',
1375+
my $cmdret = $node->psql('postgres', 'SELECT pg_sleep(600)',
13761376
stdout => \$stdout, stderr => \$stderr,
1377-
timeout => 30, timed_out => \$timed_out,
1377+
timeout => 180, timed_out => \$timed_out,
13781378
extra_params => ['--single-transaction'])
13791379
13801380
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
@@ -155,7 +155,7 @@
155155
($ret, $stdout, $stderr) = $node_replica->psql(
156156
'postgres',
157157
"SELECT data FROM pg_logical_slot_peek_changes('before_basebackup', NULL, NULL, 'include-xids', '0', 'skip-empty-xacts', '1');",
158-
timeout => 30);
158+
timeout => 180);
159159
is($ret, 0, 'replay from slot before_basebackup succeeds');
160160

161161
my $final_expected_output_bb = q(BEGIN

0 commit comments

Comments
 (0)