File: nntp.t

package info (click to toggle)
libwww-perl 6.78-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,008 kB
  • sloc: perl: 4,148; makefile: 10; sh: 6
file content (12 lines) | stat: -rw-r--r-- 371 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
use strict;
use warnings;

use LWP::UserAgent ();
use Test::More skip_all => 'nntp.perl.org is unstable and Test::RequiresInternet is not catching it';
use Test::RequiresInternet ( 'nntp.perl.org' => 119 );

plan tests => 1;
my $ua = LWP::UserAgent->new;

my $res = $ua->get('nntp://nntp.perl.org/blahblahblah@blahblahblah');
is($res->code, 404, '404 on fake nntp url');