Skip to content

Commit

Permalink
use IO::Socket::INET for tests again
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 6, 2014
1 parent 17e2d5f commit 5b37319
Show file tree
Hide file tree
Showing 44 changed files with 135 additions and 31 deletions.
5 changes: 4 additions & 1 deletion t/mojo/daemon.t
@@ -1,6 +1,9 @@
use Mojo::Base -strict;

BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }
BEGIN {
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

use Test::More;
use Cwd 'abs_path';
Expand Down
5 changes: 4 additions & 1 deletion t/mojo/delay.t
@@ -1,6 +1,9 @@
use Mojo::Base -strict;

BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }
BEGIN {
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

use Test::More;
use Mojo::IOLoop;
Expand Down
5 changes: 4 additions & 1 deletion t/mojo/hypnotoad.t
@@ -1,6 +1,9 @@
use Mojo::Base -strict;

BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }
BEGIN {
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

use Test::More;

Expand Down
5 changes: 4 additions & 1 deletion t/mojo/ioloop.t
@@ -1,6 +1,9 @@
use Mojo::Base -strict;

BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }
BEGIN {
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

use Test::More;
use Mojo::IOLoop;
Expand Down
5 changes: 4 additions & 1 deletion t/mojo/ioloop_tls.t
@@ -1,6 +1,9 @@
use Mojo::Base -strict;

BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }
BEGIN {
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

use Test::More;
use Mojo::IOLoop::Server;
Expand Down
5 changes: 4 additions & 1 deletion t/mojo/morbo.t
@@ -1,6 +1,9 @@
use Mojo::Base -strict;

BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }
BEGIN {
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

use Test::More;

Expand Down
5 changes: 4 additions & 1 deletion t/mojo/prefork.t
@@ -1,6 +1,9 @@
use Mojo::Base -strict;

BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }
BEGIN {
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

use Test::More;

Expand Down
2 changes: 2 additions & 0 deletions t/mojo/reactor_ev.t
@@ -1,5 +1,7 @@
use Mojo::Base -strict;

BEGIN { $ENV{MOJO_NO_IPV6} = 1 }

use Test::More;

plan skip_all => 'set TEST_EV to enable this test (developer only!)'
Expand Down
5 changes: 4 additions & 1 deletion t/mojo/reactor_poll.t
@@ -1,6 +1,9 @@
use Mojo::Base -strict;

BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }
BEGIN {
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

use Test::More;
use IO::Socket::INET;
Expand Down
2 changes: 1 addition & 1 deletion t/mojo/user_agent.t
@@ -1,7 +1,7 @@
use Mojo::Base -strict;

BEGIN {
$ENV{MOJO_NO_SOCKS} = $ENV{MOJO_NO_TLS} = 1;
$ENV{MOJO_NO_IPV6} = $ENV{MOJO_NO_SOCKS} = $ENV{MOJO_NO_TLS} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

Expand Down
5 changes: 4 additions & 1 deletion t/mojo/user_agent_socks.t
@@ -1,6 +1,9 @@
use Mojo::Base -strict;

BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }
BEGIN {
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

use Test::More;
use Mojo::IOLoop::Client;
Expand Down
5 changes: 4 additions & 1 deletion t/mojo/user_agent_tls.t
@@ -1,6 +1,9 @@
use Mojo::Base -strict;

BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }
BEGIN {
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

use Test::More;
use Mojo::IOLoop::Server;
Expand Down
5 changes: 4 additions & 1 deletion t/mojo/websocket.t
@@ -1,6 +1,9 @@
use Mojo::Base -strict;

BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }
BEGIN {
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

use Test::More;
use IO::Socket::INET;
Expand Down
5 changes: 4 additions & 1 deletion t/mojo/websocket_proxy.t
@@ -1,6 +1,9 @@
use Mojo::Base -strict;

BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }
BEGIN {
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

use Test::More;
use Mojo::IOLoop;
Expand Down
5 changes: 4 additions & 1 deletion t/mojo/websocket_proxy_tls.t
@@ -1,6 +1,9 @@
use Mojo::Base -strict;

BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }
BEGIN {
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

use Test::More;
use Mojo::IOLoop::Server;
Expand Down
1 change: 1 addition & 0 deletions t/mojolicious/app.t
Expand Up @@ -3,6 +3,7 @@ use Mojo::Base -strict;
BEGIN {
$ENV{PLACK_ENV} = undef;
$ENV{MOJO_MODE} = 'development';
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

Expand Down
5 changes: 4 additions & 1 deletion t/mojolicious/charset_lite_app.t
@@ -1,6 +1,9 @@
use Mojo::Base -strict;

BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }
BEGIN {
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

use Test::More;
use Mojo::ByteStream 'b';
Expand Down
5 changes: 4 additions & 1 deletion t/mojolicious/dispatcher_lite_app.t
@@ -1,6 +1,9 @@
use Mojo::Base -strict;

BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }
BEGIN {
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

use Test::More;

Expand Down
1 change: 1 addition & 0 deletions t/mojolicious/embedded_app.t
Expand Up @@ -2,6 +2,7 @@ use Mojo::Base -strict;

BEGIN {
$ENV{MOJO_MODE} = 'testing';
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

Expand Down
1 change: 1 addition & 0 deletions t/mojolicious/embedded_lite_app.t
Expand Up @@ -2,6 +2,7 @@ use Mojo::Base -strict;

BEGIN {
$ENV{MOJO_MODE} = 'testing';
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

Expand Down
1 change: 1 addition & 0 deletions t/mojolicious/exception_lite_app.t
Expand Up @@ -2,6 +2,7 @@ use Mojo::Base -strict;

BEGIN {
$ENV{MOJO_MODE} = 'development';
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

Expand Down
1 change: 1 addition & 0 deletions t/mojolicious/external_app.t
Expand Up @@ -2,6 +2,7 @@ use Mojo::Base -strict;

BEGIN {
$ENV{MOJO_MODE} = 'testing';
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

Expand Down
1 change: 1 addition & 0 deletions t/mojolicious/external_lite_app.t
Expand Up @@ -2,6 +2,7 @@ use Mojo::Base -strict;

BEGIN {
$ENV{MOJO_MODE} = 'testing';
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

Expand Down
5 changes: 4 additions & 1 deletion t/mojolicious/group_lite_app.t
@@ -1,6 +1,9 @@
use Mojo::Base -strict;

BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }
BEGIN {
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

use Test::More;
use Mojo::ByteStream 'b';
Expand Down
1 change: 1 addition & 0 deletions t/mojolicious/json_config_lite_app.t
Expand Up @@ -2,6 +2,7 @@ use Mojo::Base -strict;

BEGIN {
$ENV{MOJO_MODE} = 'development';
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

Expand Down
1 change: 1 addition & 0 deletions t/mojolicious/json_config_mode_lite_app.t
Expand Up @@ -2,6 +2,7 @@ use Mojo::Base -strict;

BEGIN {
$ENV{MOJO_MODE} = 'testing';
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

Expand Down
5 changes: 4 additions & 1 deletion t/mojolicious/layouted_lite_app.t
@@ -1,6 +1,9 @@
use Mojo::Base -strict;

BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }
BEGIN {
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

use Test::More;

Expand Down
1 change: 1 addition & 0 deletions t/mojolicious/lite_app.t
Expand Up @@ -2,6 +2,7 @@ use Mojo::Base -strict;

BEGIN {
$ENV{MOJO_MODE} = 'development';
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

Expand Down
5 changes: 4 additions & 1 deletion t/mojolicious/longpolling_lite_app.t
@@ -1,6 +1,9 @@
use Mojo::Base -strict;

BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }
BEGIN {
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

use Test::More;
use Mojo::IOLoop;
Expand Down
5 changes: 4 additions & 1 deletion t/mojolicious/multipath_lite_app.t
@@ -1,6 +1,9 @@
use Mojo::Base -strict;

BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }
BEGIN {
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

use Test::More;
use Mojolicious::Lite;
Expand Down
1 change: 1 addition & 0 deletions t/mojolicious/ojo.t
Expand Up @@ -2,6 +2,7 @@ use Mojo::Base -strict;

BEGIN {
$ENV{MOJO_MODE} = 'development';
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_PROXY} = 0;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
Expand Down
5 changes: 4 additions & 1 deletion t/mojolicious/pod_renderer_lite_app.t
@@ -1,6 +1,9 @@
use Mojo::Base -strict;

BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }
BEGIN {
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

use Test::More;
use Mojolicious::Lite;
Expand Down
1 change: 1 addition & 0 deletions t/mojolicious/production_app.t
Expand Up @@ -2,6 +2,7 @@ use Mojo::Base -strict;

BEGIN {
$ENV{MOJO_MODE} = 'production';
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

Expand Down
5 changes: 4 additions & 1 deletion t/mojolicious/rebased_lite_app.t
@@ -1,6 +1,9 @@
use Mojo::Base -strict;

BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }
BEGIN {
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

use Test::More;
use Mojo::URL;
Expand Down
5 changes: 4 additions & 1 deletion t/mojolicious/restful_lite_app.t
@@ -1,6 +1,9 @@
use Mojo::Base -strict;

BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }
BEGIN {
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

use Test::More;
use Mojolicious::Lite;
Expand Down
5 changes: 4 additions & 1 deletion t/mojolicious/static_lite_app.t
@@ -1,6 +1,9 @@
use Mojo::Base -strict;

BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }
BEGIN {
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

use Test::More;
use Mojo::Asset::Memory;
Expand Down
5 changes: 4 additions & 1 deletion t/mojolicious/tag_helper_lite_app.t
@@ -1,6 +1,9 @@
use Mojo::Base -strict;

BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }
BEGIN {
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

use Test::More;
use Mojolicious::Lite;
Expand Down
1 change: 1 addition & 0 deletions t/mojolicious/testing_app.t
Expand Up @@ -2,6 +2,7 @@ use Mojo::Base -strict;

BEGIN {
$ENV{MOJO_MODE} = 'testing';
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

Expand Down
5 changes: 4 additions & 1 deletion t/mojolicious/tls_lite_app.t
@@ -1,6 +1,9 @@
use Mojo::Base -strict;

BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }
BEGIN {
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

use Test::More;
use Mojo::IOLoop::Server;
Expand Down
5 changes: 4 additions & 1 deletion t/mojolicious/twinkle_lite_app.t
@@ -1,6 +1,9 @@
use Mojo::Base -strict;

BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }
BEGIN {
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

use Test::More;
use Mojolicious::Lite;
Expand Down

0 comments on commit 5b37319

Please sign in to comment.