1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Description: disable tests requiring networking
If networking is down during the name resolution tests, or there
is no Internet access available on the build system, the package
will fail to build from source.
.
Thus, we skip tests if NO_NETWORK is set to a true value.
Author: Jonathan Yu <jawnsy@cpan.org>
Origin: vendor
Forwarded: not-needed
--- a/t/01-basic.t
+++ b/t/01-basic.t
@@ -2,7 +2,13 @@
use warnings;
use strict;
-use Test::More tests => 4;
+use Test::More;
+
+if ($ENV{NO_NETWORK}) {
+ plan skip_all => 'Unset NO_NETWORK to enable tests requiring Internet';
+}
+
+plan tests => 4;
sub POE::Kernel::ASSERT_DEFAULT () { 1 }
|