From a1d7294ba7262b71bc28353903f89c8134805fa3 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Fri, 21 Nov 2014 17:27:35 +0200 Subject: [PATCH] Use Test::RequiresInternet --- Makefile.PL | 3 ++- t/WWW-Search-Torrentz.t | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.PL b/Makefile.PL index 598ec97..edcedc3 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -10,7 +10,8 @@ WriteMakefile( LICENSE => 'perl', SIGN => 1, BUILD_REQUIRES => { - qw/WWW::Search::Test 0/, + qw/Test::RequiresInternet 0 + WWW::Search::Test 0/, }, PREREQ_PM => { qw/HTML::TreeBuilder 0 diff --git a/t/WWW-Search-Torrentz.t b/t/WWW-Search-Torrentz.t index 295c359..64116f7 100644 --- a/t/WWW-Search-Torrentz.t +++ b/t/WWW-Search-Torrentz.t @@ -3,7 +3,9 @@ use strict; use warnings; use WWW::Search::Test; +use Test::RequiresInternet qw/torrentz.eu 443/; use Test::More; + BEGIN { use_ok('WWW::Search::Torrentz') }; tm_new_engine('Torrentz'); -- 2.39.2