On 1/30/17 12:09 AM, Jim Turner via cpan-testers-discuss wrote:
Greetings,

      I've released a new module to CPAN that requires a working internet 
connection to pass it's test harness (it's only function is to retrieve certain 
data from specific types of internet sites.  It's failing pretty much across 
testing platforms indicating that it's not able to fetch any data.  How can 
this be addressed in my test harness?

Regards,

Jim

Jim:

Put this into your Makefile.PL:

use IO::Socket::INET;

my $s = IO::Socket::INET->new(
PeerAddr => 'www.google.com:80', # Choose the site and port number that you want to ensure is working
        Timeout => 10
);
unless($s) {
die '...Insert module name here.... needs a permanent connection to the Internet';
}

Regards,

-Nigel

--

Nigel Horne
Conductor: Rockville Brass Band, Washington Metropolitan GSO
@nigelhorne | fb/nigel.horne | bandsman.co.uk | concert-bands.co.uk | 
www.nigelhorne.com

Unless it's for my eyes only, please use "reply all"


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to