Description: skip network tests if NO_NETWORK is set
Origin: vendor
Forwarded: not-needed
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2025-02-07

--- a/t/20-synchronous.t
+++ b/t/20-synchronous.t
@@ -13,6 +13,7 @@
 	debug_level => 0
 	);
 
+plan skip_all => 'network tests disabled via NO_NETWORK' if $ENV{NO_NETWORK};
 plan skip_all => 'resolver not loaded' unless $resolver;
 plan skip_all => 'no local nameserver' unless $resolver->nameserver;
 plan tests    => 4;
--- a/t/25-decode.t
+++ b/t/25-decode.t
@@ -10,6 +10,7 @@
 
 my $resolver = Net::DNS::Resolver::Unbound->new();
 
+plan skip_all => 'network tests disabled via NO_NETWORK' if $ENV{NO_NETWORK};
 plan skip_all => 'resolver not loaded' unless $resolver;
 plan tests    => 4;
 
--- a/t/30-asynchronous.t
+++ b/t/30-asynchronous.t
@@ -9,6 +9,7 @@
 
 my $resolver = Net::DNS::Resolver::Unbound->new();
 
+plan skip_all => 'network tests disabled via NO_NETWORK' if $ENV{NO_NETWORK};
 plan skip_all => 'resolver not loaded' unless $resolver;
 plan skip_all => 'no local nameserver' unless $resolver->nameserver;
 plan tests    => 7;
