mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-23 03:20:40 +02:00
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.
This commit is contained in:
parent
a15d84470d
commit
b6ca46e12d
@ -29,9 +29,9 @@ PostgresNode - class representing PostgreSQL server instance
|
|||||||
# as well as the psql exit code. Pass some extra psql
|
# as well as the psql exit code. Pass some extra psql
|
||||||
# options. If there's an error from psql raise an exception.
|
# options. If there's an error from psql raise an exception.
|
||||||
my ($stdout, $stderr, $timed_out);
|
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,
|
stdout => \$stdout, stderr => \$stderr,
|
||||||
timeout => 30, timed_out => \$timed_out,
|
timeout => 180, timed_out => \$timed_out,
|
||||||
extra_params => ['--single-transaction'],
|
extra_params => ['--single-transaction'],
|
||||||
on_error_die => 1)
|
on_error_die => 1)
|
||||||
print "Sleep timed out" if $timed_out;
|
print "Sleep timed out" if $timed_out;
|
||||||
@ -1323,9 +1323,9 @@ If given, it must be an array reference containing additional parameters to B<ps
|
|||||||
e.g.
|
e.g.
|
||||||
|
|
||||||
my ($stdout, $stderr, $timed_out);
|
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,
|
stdout => \$stdout, stderr => \$stderr,
|
||||||
timeout => 30, timed_out => \$timed_out,
|
timeout => 180, timed_out => \$timed_out,
|
||||||
extra_params => ['--single-transaction'])
|
extra_params => ['--single-transaction'])
|
||||||
|
|
||||||
will set $cmdret to undef and $timed_out to a true value.
|
will set $cmdret to undef and $timed_out to a true value.
|
||||||
|
@ -155,7 +155,7 @@ like(
|
|||||||
($ret, $stdout, $stderr) = $node_replica->psql(
|
($ret, $stdout, $stderr) = $node_replica->psql(
|
||||||
'postgres',
|
'postgres',
|
||||||
"SELECT data FROM pg_logical_slot_peek_changes('before_basebackup', NULL, NULL, 'include-xids', '0', 'skip-empty-xacts', '1');",
|
"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');
|
is($ret, 0, 'replay from slot before_basebackup succeeds');
|
||||||
|
|
||||||
my $final_expected_output_bb = q(BEGIN
|
my $final_expected_output_bb = q(BEGIN
|
||||||
|
Loading…
Reference in New Issue
Block a user