File: disable-network.patch

package info (click to toggle)
libsms-aql-perl 1.02-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 152 kB
  • ctags: 15
  • sloc: perl: 593; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 463 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
20
21
Description: skip tests which needs internet access
Origin: vendor
Forwarded: not-needed
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2015-08-11

--- a/t/1-basic.t
+++ b/t/1-basic.t
@@ -25,9 +25,12 @@
 ok(ref $sender eq 'SMS::AQL', 
     '$sender is an instance of SMS::AQL');
 
+SKIP: {
+skip "Test requires internet", 1 unless $ENV{USE_NETWORK};
 my $balance = $sender->credit();
 
 ok($balance =~ /^[0-9]+$/, 'got account balance');
+}
 
 
 =begin