Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Oct 28, 2020
1 parent 4e1fb67 commit d2a21c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/rt131607.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use strict;
use warnings;
use Test::More;
use Test::Without::Module qw(LWP::Simple);
use Test::Without::Module qw(LWP::Simple::WithCache);

use lib 't/lib';
use MyLogger;
Expand Down Expand Up @@ -42,7 +42,7 @@ unless(-e 't/online.enabled') {
my $t = $l->time_zone();
die "Shouldn't succeed";
};
like($@, qr/^You must have LWP::Simple/, 'Need connection to ip-api.com');
like($@, qr/^You must have LWP::Simple::WithCache/, 'Need connection to ip-api.com');
} else {
plan skip_all => 'Need either Geo::IP or JSON::Parse to test t/time_zone.t'
}

0 comments on commit d2a21c5

Please sign in to comment.