diff --git a/t/Plack-Handler/standalone.t b/t/Plack-Handler/standalone.t index f5fcf266f..b42de16de 100644 --- a/t/Plack-Handler/standalone.t +++ b/t/Plack-Handler/standalone.t @@ -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; diff --git a/t/Plack-Loader/shotgun.t b/t/Plack-Loader/shotgun.t index cb7b95a7c..d9fe148ff 100644 --- a/t/Plack-Loader/shotgun.t +++ b/t/Plack-Loader/shotgun.t @@ -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; diff --git a/t/Plack-Middleware/component-leak.t b/t/Plack-Middleware/component-leak.t index 7cdab9914..2acedd017 100644 --- a/t/Plack-Middleware/component-leak.t +++ b/t/Plack-Middleware/component-leak.t @@ -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; diff --git a/t/Plack-Middleware/error_document_streaming_app.t b/t/Plack-Middleware/error_document_streaming_app.t index b177c536f..c893e7bfc 100644 --- a/t/Plack-Middleware/error_document_streaming_app.t +++ b/t/Plack-Middleware/error_document_streaming_app.t @@ -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; diff --git a/t/Plack-Middleware/stacktrace/sigdie.t b/t/Plack-Middleware/stacktrace/sigdie.t index dc82b2c74..28747cf1e 100644 --- a/t/Plack-Middleware/stacktrace/sigdie.t +++ b/t/Plack-Middleware/stacktrace/sigdie.t @@ -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; diff --git a/t/Plack-Middleware/stacktrace/utf8.t b/t/Plack-Middleware/stacktrace/utf8.t index 6d2f51fff..77849dc8d 100644 --- a/t/Plack-Middleware/stacktrace/utf8.t +++ b/t/Plack-Middleware/stacktrace/utf8.t @@ -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; diff --git a/t/Plack-Middleware/urlmap_ports.t b/t/Plack-Middleware/urlmap_ports.t index 9a0a9c0a6..4ff4ba517 100644 --- a/t/Plack-Middleware/urlmap_ports.t +++ b/t/Plack-Middleware/urlmap_ports.t @@ -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; diff --git a/t/Plack-Test/2args.t b/t/Plack-Test/2args.t index 2942f93b3..a68481d61 100644 --- a/t/Plack-Test/2args.t +++ b/t/Plack-Test/2args.t @@ -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; diff --git a/t/Plack-Test/hello_server.t b/t/Plack-Test/hello_server.t index 47ffb75bc..dc9f4bd0e 100644 --- a/t/Plack-Test/hello_server.t +++ b/t/Plack-Test/hello_server.t @@ -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; diff --git a/t/Plack-Util/response_cb.t b/t/Plack-Util/response_cb.t index 813dc871a..5cb31baf2 100644 --- a/t/Plack-Util/response_cb.t +++ b/t/Plack-Util/response_cb.t @@ -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;