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 27
|
Description: disable network tests (DNS queries)
Origin: vendor
Forwarded: not-needed
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2025-04-12
--- a/t/testremote.t
+++ b/t/testremote.t
@@ -57,6 +57,8 @@
$mcpi->{config}{remote} =~ s/:\d{5}\b/:$port/a;
SKIP: {
+ skip 'No network tests during Debian build', 1
+ if $ENV{NO_NETWORK};
skip 'Test fails with funky DNS providers', 1 if can_fetch( 'http://blahblah' );
# This fails with OpenDNS &c
$mcpi->testremote;
--- a/t/exceptions.t
+++ b/t/exceptions.t
@@ -279,6 +279,7 @@
};
subtest 'unreachable remote' => sub {
+ plan skip_all => "No network tests during Debian build" if $ENV{NO_NETWORK};
my $unreachable_host = 'com';
my $url = 'http://$host/';
|