Skip to content

Fence off Network IO with NO_NETWORK_TESTING #561

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions t/Plack-Handler/standalone.t
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
BEGIN {
if ( $ENV{NO_NETWORK_TESTING} ) {
print '1..0 # SKIP Network connections required for this test';
exit;
}
}
use strict;
use warnings;
use Test::More;
Expand Down
6 changes: 6 additions & 0 deletions t/Plack-Loader/shotgun.t
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
BEGIN {
if ( $ENV{NO_NETWORK_TESTING} ) {
print '1..0 # SKIP Network connections required for this test';
exit;
}
}
use strict;
use warnings;
use Test::More;
Expand Down
7 changes: 7 additions & 0 deletions t/Plack-Middleware/component-leak.t
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
BEGIN {
if ( $ENV{NO_NETWORK_TESTING} ) {
print '1..0 # SKIP Network connections required for this test';
exit;
}
}

package MyComponent;
use strict;
use warnings;
Expand Down
7 changes: 7 additions & 0 deletions t/Plack-Middleware/error_document_streaming_app.t
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
BEGIN {
if ( $ENV{NO_NETWORK_TESTING} ) {
print '1..0 # SKIP Network connections required for this test';
exit;
}
}

use strict;
use warnings;
use FindBin;
Expand Down
7 changes: 7 additions & 0 deletions t/Plack-Middleware/stacktrace/sigdie.t
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
BEGIN {
if ( $ENV{NO_NETWORK_TESTING} ) {
print '1..0 # SKIP Network connections required for this test';
exit;
}
}

use strict;
use warnings;
use Test::More;
Expand Down
7 changes: 7 additions & 0 deletions t/Plack-Middleware/stacktrace/utf8.t
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
BEGIN {
if ( $ENV{NO_NETWORK_TESTING} ) {
print '1..0 # SKIP Network connections required for this test';
exit;
}
}

use strict;
use warnings;
use Test::More;
Expand Down
6 changes: 6 additions & 0 deletions t/Plack-Middleware/urlmap_ports.t
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
BEGIN {
if ( $ENV{NO_NETWORK_TESTING} ) {
print '1..0 # SKIP Network connections required for this test';
exit;
}
}
use strict;
use Test::More;
use Plack::App::URLMap;
Expand Down
7 changes: 7 additions & 0 deletions t/Plack-Test/2args.t
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
BEGIN {
if ( $ENV{NO_NETWORK_TESTING} ) {
print '1..0 # SKIP Network connections required for this test';
exit;
}
}

use Plack::Test;
use Test::More;
use HTTP::Request::Common;
Expand Down
7 changes: 7 additions & 0 deletions t/Plack-Test/hello_server.t
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
BEGIN {
if ( $ENV{NO_NETWORK_TESTING} ) {
print '1..0 # SKIP Network connections required for this test';
exit;
}
}

use Test::More;
use Plack::Test;

Expand Down
7 changes: 7 additions & 0 deletions t/Plack-Util/response_cb.t
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
BEGIN {
if ( $ENV{NO_NETWORK_TESTING} ) {
print '1..0 # SKIP Network connections required for this test';
exit;
}
}

use strict;
use warnings;
use Plack::Util;
Expand Down