Remove unused module imports from TAP tests
The Config and Cwd modules were no longer used, but remained imported, in a number of tests. Remove to keep the imports to the actually used modules. Reviewed-by: Andrew Dunstan <andrew@dunslane.net> Discussion: https://postgr.es/m/A5A074CD-3198-492B-BE5E-7961EFC3733F@yesql.se
This commit is contained in:
parent
412ad7a556
commit
7dac61402e
|
@ -5,7 +5,6 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
|
||||
use Config;
|
||||
use PostgreSQL::Test::Cluster;
|
||||
use PostgreSQL::Test::Utils;
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
|
||||
use Config;
|
||||
use PostgreSQL::Test::Cluster;
|
||||
use PostgreSQL::Test::Utils;
|
||||
|
||||
|
|
|
@ -3,8 +3,6 @@
|
|||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Cwd;
|
||||
use Config;
|
||||
use File::Basename qw(basename dirname);
|
||||
use File::Path qw(rmtree);
|
||||
use Fcntl qw(:seek);
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Config;
|
||||
use PostgreSQL::Test::Cluster;
|
||||
use PostgreSQL::Test::Utils;
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
|
||||
use Config;
|
||||
use PostgreSQL::Test::Cluster;
|
||||
use PostgreSQL::Test::Utils;
|
||||
use Test::More;
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
|
||||
use Config;
|
||||
use PostgreSQL::Test::Cluster;
|
||||
use PostgreSQL::Test::Utils;
|
||||
use Test::More;
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
|
||||
use Config;
|
||||
use PostgreSQL::Test::Utils;
|
||||
use Test::More;
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
|
||||
use Config;
|
||||
use PostgreSQL::Test::Utils;
|
||||
use Test::More;
|
||||
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Cwd;
|
||||
use Config;
|
||||
use File::Path qw(rmtree);
|
||||
use PostgreSQL::Test::Cluster;
|
||||
use PostgreSQL::Test::Utils;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Cwd;
|
||||
use Config;
|
||||
use File::Path qw(rmtree);
|
||||
use PostgreSQL::Test::Cluster;
|
||||
use PostgreSQL::Test::Utils;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Cwd;
|
||||
use Config;
|
||||
use File::Path qw(rmtree);
|
||||
use PostgreSQL::Test::Cluster;
|
||||
use PostgreSQL::Test::Utils;
|
||||
|
|
|
@ -6,8 +6,6 @@
|
|||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Cwd;
|
||||
use Config;
|
||||
use PostgreSQL::Test::Cluster;
|
||||
use PostgreSQL::Test::Utils;
|
||||
use Test::More;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Cwd;
|
||||
use Config;
|
||||
use PostgreSQL::Test::Cluster;
|
||||
use PostgreSQL::Test::Utils;
|
||||
use Test::More;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Cwd;
|
||||
use Config;
|
||||
use File::Path qw(rmtree);
|
||||
use PostgreSQL::Test::Cluster;
|
||||
use PostgreSQL::Test::Utils;
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Config;
|
||||
use File::Path qw(rmtree);
|
||||
use PostgreSQL::Test::Cluster;
|
||||
use PostgreSQL::Test::Utils;
|
||||
|
|
|
@ -6,8 +6,6 @@
|
|||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Cwd;
|
||||
use Config;
|
||||
use File::Path qw(rmtree);
|
||||
use PostgreSQL::Test::Cluster;
|
||||
use PostgreSQL::Test::Utils;
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Config;
|
||||
use File::Path qw(rmtree);
|
||||
use PostgreSQL::Test::Cluster;
|
||||
use PostgreSQL::Test::Utils;
|
||||
|
|
|
@ -7,7 +7,6 @@ use warnings;
|
|||
use PostgreSQL::Test::Cluster;
|
||||
use PostgreSQL::Test::Utils;
|
||||
use Test::More;
|
||||
use Config;
|
||||
|
||||
# start a pgbench specific server
|
||||
my $node = PostgreSQL::Test::Cluster->new('main');
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
|
||||
use Config;
|
||||
use PostgreSQL::Test::Cluster;
|
||||
use PostgreSQL::Test::Utils;
|
||||
use Test::More;
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
|
||||
use Config;
|
||||
use PostgreSQL::Test::Cluster;
|
||||
use PostgreSQL::Test::Utils;
|
||||
use Test::More;
|
||||
|
|
|
@ -93,7 +93,6 @@ use warnings;
|
|||
|
||||
use Carp;
|
||||
use Config;
|
||||
use Cwd;
|
||||
use Fcntl qw(:mode);
|
||||
use File::Basename;
|
||||
use File::Path qw(rmtree);
|
||||
|
|
|
@ -9,7 +9,6 @@ use warnings;
|
|||
use PostgreSQL::Test::Cluster;
|
||||
use PostgreSQL::Test::Utils;
|
||||
use Test::More;
|
||||
use Config;
|
||||
|
||||
my $node = PostgreSQL::Test::Cluster->new('primary');
|
||||
$node->init(allows_streaming => 1);
|
||||
|
|
|
@ -16,7 +16,6 @@ use warnings;
|
|||
use PostgreSQL::Test::Cluster;
|
||||
use PostgreSQL::Test::Utils;
|
||||
use Test::More;
|
||||
use Config;
|
||||
|
||||
my $psql_timeout = IPC::Run::timer($PostgreSQL::Test::Utils::timeout_default);
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#
|
||||
use strict;
|
||||
use warnings;
|
||||
use Config;
|
||||
use File::stat qw(stat);
|
||||
use IPC::Run 'run';
|
||||
use PostgreSQL::Test::Cluster;
|
||||
|
|
|
@ -9,7 +9,6 @@ use warnings;
|
|||
use PostgreSQL::Test::Cluster;
|
||||
use PostgreSQL::Test::Utils;
|
||||
use Test::More;
|
||||
use Config;
|
||||
|
||||
my $primary = PostgreSQL::Test::Cluster->new('primary');
|
||||
$primary->init(
|
||||
|
|
|
@ -9,7 +9,6 @@ use warnings;
|
|||
use PostgreSQL::Test::Cluster;
|
||||
use PostgreSQL::Test::Utils;
|
||||
use Test::More;
|
||||
use Config;
|
||||
|
||||
# Initialize primary node
|
||||
my $node_primary = PostgreSQL::Test::Cluster->new('primary');
|
||||
|
|
Loading…
Reference in New Issue