Skip to content

Commit

Permalink
Quick fix to the live internet tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Jun 9, 2021
1 parent 612f44e commit e421abd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions t/01-find.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ use Test::More tests => 4;
use Feed::Find;
use LWP::UserAgent;

use constant BASE => 'http://stupidfool.org/perl/feeds/';
use constant BASE => 'https://davecross.co.uk/';

my(@feeds);

@feeds = Feed::Find->find(BASE . 'anchors-only.html');
@feeds = Feed::Find->find(BASE . '2020-vision/');
is(scalar @feeds, 1);
is($feeds[0], BASE . 'ok.xml');
is($feeds[0], BASE . '2020-vision/feed.atom');

my $ua = LWP::UserAgent->new;
$ua->env_proxy;
my $req = HTTP::Request->new(GET => BASE . 'anchors-only.html');
my $req = HTTP::Request->new(GET => BASE . '2020-vision/');
my $res = $ua->request($req);
@feeds = Feed::Find->find_in_html(\$res->content, BASE . 'anchors-only.html');
@feeds = Feed::Find->find_in_html(\$res->content, BASE . '2020-vision/');
is(scalar @feeds, 1);
is($feeds[0], BASE . 'ok.xml');
is($feeds[0], BASE . '2020-vision/feed.atom');

0 comments on commit e421abd

Please sign in to comment.