diff options
author | Michael Paquier <michael@paquier.xyz> | 2022-07-07 10:13:01 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2022-07-07 10:13:01 +0900 |
commit | 1409eade9f206baebbe9ed7e18cc9ef2979c6594 (patch) | |
tree | 096553fb61a7aba56357c78e13890e3b04e3ccd9 /src | |
parent | f4d3ca421d9c67d55e527f74dde515d7f87996de (diff) | |
download | postgresql-1409eade9f206baebbe9ed7e18cc9ef2979c6594.tar.gz postgresql-1409eade9f206baebbe9ed7e18cc9ef2979c6594.zip |
Clean up some includes and comments in TAP test scripts
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
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pg_verifybackup/t/007_wal.pl | 1 | ||||
-rw-r--r-- | src/test/recovery/t/004_timeline_switch.pl | 1 | ||||
-rw-r--r-- | src/test/recovery/t/019_replslot_limit.pl | 4 |
3 files changed, 1 insertions, 5 deletions
diff --git a/src/bin/pg_verifybackup/t/007_wal.pl b/src/bin/pg_verifybackup/t/007_wal.pl index 6e9fafcd55a..9a21e8dc152 100644 --- a/src/bin/pg_verifybackup/t/007_wal.pl +++ b/src/bin/pg_verifybackup/t/007_wal.pl @@ -5,7 +5,6 @@ use strict; use warnings; -use File::Path qw(rmtree); use PostgreSQL::Test::Cluster; use PostgreSQL::Test::Utils; use Test::More; diff --git a/src/test/recovery/t/004_timeline_switch.pl b/src/test/recovery/t/004_timeline_switch.pl index 3203d937016..f946ce9f1c7 100644 --- a/src/test/recovery/t/004_timeline_switch.pl +++ b/src/test/recovery/t/004_timeline_switch.pl @@ -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; diff --git a/src/test/recovery/t/019_replslot_limit.pl b/src/test/recovery/t/019_replslot_limit.pl index 84c9c4b0b3c..ce8d36b4c6c 100644 --- a/src/test/recovery/t/019_replslot_limit.pl +++ b/src/test/recovery/t/019_replslot_limit.pl @@ -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', |