Skip to content

Commit

Permalink
all tests should work fine with IO::Socket::IP
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 4, 2014
1 parent 5de54e0 commit df0d57f
Show file tree
Hide file tree
Showing 45 changed files with 32 additions and 136 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

5.58 2014-11-03
5.58 2014-11-04

5.57 2014-11-02
- Deprecated stringification support in Mojo::Collection.
Expand Down
5 changes: 1 addition & 4 deletions t/mojo/daemon.t
@@ -1,9 +1,6 @@
use Mojo::Base -strict;

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

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

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

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

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

use Test::More;

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

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

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

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

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

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

use Test::More;

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

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

use Test::More;

Expand Down
2 changes: 0 additions & 2 deletions t/mojo/reactor_ev.t
@@ -1,7 +1,5 @@
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: 1 addition & 4 deletions t/mojo/reactor_poll.t
@@ -1,9 +1,6 @@
use Mojo::Base -strict;

BEGIN {
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
BEGIN { $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_IPV6} = $ENV{MOJO_NO_SOCKS} = $ENV{MOJO_NO_TLS} = 1;
$ENV{MOJO_NO_SOCKS} = $ENV{MOJO_NO_TLS} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

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

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

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

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

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

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

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

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

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

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

use Test::More;
use Mojo::IOLoop::Server;
Expand Down
1 change: 0 additions & 1 deletion t/mojolicious/app.t
Expand Up @@ -3,7 +3,6 @@ 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: 1 addition & 4 deletions t/mojolicious/charset_lite_app.t
@@ -1,9 +1,6 @@
use Mojo::Base -strict;

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

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

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

use Test::More;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

use Test::More;

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

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

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

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

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

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

use Test::More;
use Mojolicious::Lite;
Expand Down
1 change: 0 additions & 1 deletion t/mojolicious/ojo.t
Expand Up @@ -2,7 +2,6 @@ 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: 1 addition & 4 deletions t/mojolicious/pod_renderer_lite_app.t
@@ -1,9 +1,6 @@
use Mojo::Base -strict;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

use Test::More;
use Mojo::IOLoop::Server;
Expand Down

0 comments on commit df0d57f

Please sign in to comment.