Skip to content

Commit 1409ead

Browse files
committed
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
1 parent f4d3ca4 commit 1409ead

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

src/bin/pg_verifybackup/t/007_wal.pl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
use strict;
77
use warnings;
8-
use File::Path qw(rmtree);
98
use PostgreSQL::Test::Cluster;
109
use PostgreSQL::Test::Utils;
1110
use Test::More;

src/test/recovery/t/004_timeline_switch.pl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# Test for timeline switch
55
use strict;
66
use warnings;
7-
use File::Path qw(rmtree);
87
use PostgreSQL::Test::Cluster;
98
use PostgreSQL::Test::Utils;
109
use Test::More;

src/test/recovery/t/019_replslot_limit.pl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
use PostgreSQL::Test::Utils;
1111
use PostgreSQL::Test::Cluster;
12-
13-
use File::Path qw(rmtree);
1412
use Test::More;
1513
use Time::HiRes qw(usleep);
1614

@@ -429,7 +427,7 @@ sub advance_wal
429427
{
430428
my ($node, $n) = @_;
431429

432-
# Advance by $n segments (= (16 * $n) MB) on primary
430+
# Advance by $n segments (= (wal_segment_size * $n) bytes) on primary.
433431
for (my $i = 0; $i < $n; $i++)
434432
{
435433
$node->safe_psql('postgres',

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy