changeset 623:b70df6924290

Tests: removed unnecessary imports, lifted up skip condition. No functional changes.
author Andrey Zelenkov <zelenkov@nginx.com>
date Mon, 06 Jul 2015 21:50:11 +0300
parents b241c3c0119b
children 1dd0e909fe94
files error_log.t mail_imap.t mail_imap_ssl.t mail_pop3.t
diffstat 4 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/error_log.t
+++ b/error_log.t
@@ -22,11 +22,10 @@ use Test::Nginx;
 select STDERR; $| = 1;
 select STDOUT; $| = 1;
 
-my $t = Test::Nginx->new()->has(qw/http limit_req/);
-
 plan(skip_all => 'win32') if $^O eq 'MSWin32';
 
-$t->plan(25)->write_file_expand('nginx.conf', <<'EOF');
+my $t = Test::Nginx->new()->has(qw/http limit_req/)
+	->plan(25)->write_file_expand('nginx.conf', <<'EOF');
 
 %%TEST_GLOBALS%%
 
--- a/mail_imap.t
+++ b/mail_imap.t
@@ -11,7 +11,6 @@ use strict;
 
 use Test::More;
 
-use IO::Socket;
 use MIME::Base64;
 
 BEGIN { use FindBin; chdir($FindBin::Bin); }
--- a/mail_imap_ssl.t
+++ b/mail_imap_ssl.t
@@ -13,7 +13,6 @@ use strict;
 
 use Test::More;
 
-use IO::Socket;
 use MIME::Base64;
 
 BEGIN { use FindBin; chdir($FindBin::Bin); }
--- a/mail_pop3.t
+++ b/mail_pop3.t
@@ -11,7 +11,6 @@ use strict;
 
 use Test::More;
 
-use IO::Socket;
 use MIME::Base64;
 
 BEGIN { use FindBin; chdir($FindBin::Bin); }