Raise a timeout to 180s, in test 010_logical_decoding_timelines.pl.
authorNoah Misch <noah@leadboat.com>
Mon, 31 May 2021 07:29:58 +0000 (00:29 -0700)
committerNoah Misch <noah@leadboat.com>
Mon, 31 May 2021 07:29:58 +0000 (00:29 -0700)
Per buildfarm member hornet.  Also, update Pod documentation showing the
lower value.  Back-patch to v10, where the test first appeared.

src/test/perl/PostgresNode.pm
src/test/recovery/t/010_logical_decoding_timelines.pl

index c09a735dae99b168ebf3ddb9b79bcb5999e67116..46530255e07c37e682e79d8a9f64030a3cb3eb20 100644 (file)
@@ -31,9 +31,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;
@@ -1613,9 +1613,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.
index 8719c61a02d0712e1344da1ad11cb72abe970808..12edbf760e13364892e3aab4807b2f10e75de376 100644 (file)
@@ -158,7 +158,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