On Thu Sep 11 05:47:54 2014, roeya wrote:
Show quoted text> On Thu Jun 05 02:11:37 2014, ANDK wrote:
>
> I think that because generate_port no longer exist in newer version
> maybe replace it with is_running:
>
> use Test::More;
> use Test::Mojo;
> use Data::Dumper;
> use Mojo::Parameters;
>
> # Make sure sockets are working
> plan skip_all => 'working sockets required for this test!'
> - unless Mojo::IOLoop->new->generate_port; # Test server
> + unless Mojo::IOLoop->new->is_running; # Test server
>
Sorry my guess was not correct - the right way is this:
# Make sure sockets are working
my $id = Mojo::IOLoop->server({address => '127.0.0.1'} => sub { });
plan skip_all => 'working sockets required for this test!'
unless Mojo::IOLoop->acceptor($id)->handle->sockport; # Test server
Found it in a new version of some other plugin...
please update... new Mojolicous users like me become frustrated when things stop working...