File: no_network.patch

package info (click to toggle)
liblwp-useragent-progressbar-perl 1.100810-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 208 kB
  • ctags: 4
  • sloc: perl: 542; makefile: 4
file content (19 lines) | stat: -rw-r--r-- 462 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: skip tests which need internet access
 if NO_NETWORK is set
Origin: vendor
Forwarded: not needed
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2015-11-15

--- a/t/01_misc.t
+++ b/t/01_misc.t
@@ -23,7 +23,9 @@
 }
 
 # post
+SKIP:
 {
+    skip 'Tests require internet', 2 if $ENV{NO_NETWORK};
     my $self_url = 'http://search.cpan.org/search';
     my $response = LWP::UserAgent::ProgressBar->new->post_with_progress(
         $self_url,