Mojo-UserAgent-Role-Queued

 view release on metacpan or  search on metacpan

t/02_multiple_ua.t  view on Meta::CPAN

use Mojo::Base -strict;
use Test::More;
use Mojo::UserAgent;
use Mojo::Promise;

plan skip_all => "Test requires IO::Socket::SSL 2.009+"
  unless (Mojo::IOLoop::TLS->can_tls);

# test that ua isn't acting as a singleton when this role is applied,
# based on examples/tyldum.pl (from github issue #4)
# this test should pass in version 1.11+ but fail in 1.10

package testbase;
use Mojo::Base -base;

has ua => sub { Mojo::UserAgent->new; };



( run in 0.468 second using v1.01-cache-2.11-cpan-4d50c553e7e )