Skip Menu |

This queue is for tickets about the Mojolicious-Plugin-ParamsAuth CPAN distribution.

Report information
The Basics
Id: 96234
Status: open
Priority: 0/
Queue: Mojolicious-Plugin-ParamsAuth

People
Owner: Nobody in particular
Requestors: ANDK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.03
Fixed in: (no value)



Subject: Fails with Mojolicious 5.0
As per subject. Sample fail report: http://www.cpantesters.org/cpan/report/42798909 HTH&&Thanks, (Disclaimer: this was discovered by statistical analysis, I'm not speaking as a user)
From: roeyalmog [...] gmail.com
On Thu Jun 05 02:11:37 2014, ANDK wrote: Show quoted text
> As per subject. Sample fail report: > > http://www.cpantesters.org/cpan/report/42798909 > > HTH&&Thanks, > (Disclaimer: this was discovered by statistical analysis, I'm not > speaking as a user)
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
From: roeyalmog [...] gmail.com
On Thu Sep 11 05:47:54 2014, roeya wrote: Show quoted text
> On Thu Jun 05 02:11:37 2014, ANDK wrote:
> > As per subject. Sample fail report: > > > > http://www.cpantesters.org/cpan/report/42798909 > > > > HTH&&Thanks, > > (Disclaimer: this was discovered by statistical analysis, I'm not > > speaking as a user)
> > 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...