App-news
view release on metacpan or search on metacpan
t/00-basic.t view on Meta::CPAN
use Modern::Perl;
use Test::More;
use Net::NNTP;
our $port;
require './t/test.pl';
diag "Client connecting to $port...";
# verify that connection is possible
use IO::Socket::INET;
my $client = IO::Socket::INET->new(
Domain => AF_INET,
PeerAddr => "localhost:$port",
) or die "Cannot construct socket - $!\n";
diag "localhost is up";
my $line = <$client>;
diag "< $line";
$client->send("QUIT\r\n");
diag "> QUIT";
( run in 0.992 second using v1.01-cache-2.11-cpan-e1769b4cff6 )