File: disable_network_test.patch

package info (click to toggle)
libapp-cache-perl 0.37-2
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 108 kB
  • ctags: 24
  • sloc: perl: 290; makefile: 9
file content (26 lines) | stat: -rw-r--r-- 725 bytes parent folder | download | duplicates (3)
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
Autor: Don Armstrong <don@donarmstrong.com>
Description: disable network test (Closes: #465642)

diff --git a/t/simple.t b/t/simple.t
index 39f15c6..eae3c89 100644
--- a/t/simple.t
+++ b/t/simple.t
@@ -1,7 +1,7 @@
 #!perl
 use strict;
 use lib qw(lib t/lib);
-use Test::More tests => 48;
+use Test::More tests => 45;
 use File::Spec::Functions qw(rel2abs);
 use_ok('App::Cache');
 use_ok('App::Cache::Test');
@@ -12,7 +12,8 @@ $cache->file;
 $cache->dir;
 $cache->scratch;
 $cache->url( 'file:/' . rel2abs( $INC{'App/Cache/Test.pm'} ) );
-$cache->url('http://www.astray.com/');
+# We can't run this test because there's no guarantee of network.
+#$cache->url('http://www.astray.com/');
 $cache->disabled;
 $cache->cleanup;