You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I need to install my app along with all dependencies, this module is esp. slow (2.75 minutes to run tests).
It's mainly caused by the t/bad-hosts.t test file. If I set the timeout() to 5 seconds there, the overall test runtime drops to ~ 40 seconds. Dunno if having a shorter timeout there is acceptable or not.
If you send me through your patch I'll probably apply it.
As you've probably seen I added the skip_all check for weird DNS issues:
# Some weird ISPs or DNS providers take an address like http://i.dont.exist/
# and resolve it to something "useful" such as
# http://navigationshilfe1.t-online.de/dnserror?url=http://i.dont.exist/
#
# If that's happening then let's just give up on this test entirely.
{
my $ua = LWP::UserAgent->new;
if ($ua->get('http://i.dont.exist/foo/bar')->is_success) {
plan skip_all => 'http://i.dont.exist/foo/bar resolved to something!';
exit;
}
}
I've got two servers, one which triggers the problem and one which doesn't, but in both cases the test finishes very quickly.
Activity
kaoru commentedon Mar 15, 2015
Hi @mia
If you send me through your patch I'll probably apply it.
As you've probably seen I added the skip_all check for weird DNS issues:
I've got two servers, one which triggers the problem and one which doesn't, but in both cases the test finishes very quickly.
Maybe your DNS situation is even weirder than mine? :-)