Clean up some includes and comments in TAP test scripts
authorMichael Paquier <michael@paquier.xyz>
Thu, 7 Jul 2022 01:13:01 +0000 (10:13 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 7 Jul 2022 01:13:01 +0000 (10:13 +0900)
A few tests included File::Path::rmtree without using it, and a comment
related to the segment size for replication slot limits was wrong.

Author: Pavel Borisov, Bharath Rupireddy
Reviewed-by: Maxim Orlov
Discussion: https://postgr.es/m/CALj2ACU4-aNLX=DrUM8F7QDwynJKzYRiqOj_33NhnGbhDs5-kQ@mail.gmail.com

src/bin/pg_verifybackup/t/007_wal.pl
src/test/recovery/t/004_timeline_switch.pl
src/test/recovery/t/019_replslot_limit.pl

index 6e9fafcd55a7ff4ed56322a81b8ac7ebac23a101..9a21e8dc15217efbe3e5708cc09c937725726152 100644 (file)
@@ -5,7 +5,6 @@
 
 use strict;
 use warnings;
-use File::Path qw(rmtree);
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 3203d93701643ce12a699dd6b2a9b31b13e5b6e2..f946ce9f1c73e4fba2fcd8883f678182a5e8ee6a 100644 (file)
@@ -4,7 +4,6 @@
 # Test for timeline switch
 use strict;
 use warnings;
-use File::Path qw(rmtree);
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 84c9c4b0b3cfd20ab25ce5a783960fb694b56b8e..ce8d36b4c6c3c6c13f59dd62c4b8b014ceefa1de 100644 (file)
@@ -9,8 +9,6 @@ use warnings;
 
 use PostgreSQL::Test::Utils;
 use PostgreSQL::Test::Cluster;
-
-use File::Path qw(rmtree);
 use Test::More;
 use Time::HiRes qw(usleep);
 
@@ -429,7 +427,7 @@ sub advance_wal
 {
    my ($node, $n) = @_;
 
-   # Advance by $n segments (= (16 * $n) MB) on primary
+   # Advance by $n segments (= (wal_segment_size * $n) bytes) on primary.
    for (my $i = 0; $i < $n; $i++)
    {
        $node->safe_psql('postgres',