File: skip_tests_requiring_net_connectivity

package info (click to toggle)
ruby-net-http-persistent 2.9.4-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 260 kB
  • ctags: 411
  • sloc: ruby: 1,954; makefile: 2
file content (35 lines) | stat: -rw-r--r-- 1,404 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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Date: Thu, 09 Aug 2012 18:47:53 -0500
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=684421
Origin: Debian
Forwarded: Not-needed
Author: Gunnar Wolf <gwolf@debian.org>
Description: Fix FTBFS when built with no network access

Index: ruby-net-http-persistent/test/test_net_http_persistent.rb
===================================================================
--- ruby-net-http-persistent.orig/test/test_net_http_persistent.rb
+++ ruby-net-http-persistent/test/test_net_http_persistent.rb
@@ -439,6 +439,7 @@ class TestNetHttpPersistent < Minitest::
   end
 
   def test_connection_for_http_class_with_fakeweb
+    skip 'No network access can be assumed at Debian package build time'
     Object.send :const_set, :FakeWeb, nil
     c = @http.connection_for @uri
     assert_instance_of Net::HTTP, c
@@ -449,6 +450,7 @@ class TestNetHttpPersistent < Minitest::
   end
 
   def test_connection_for_http_class_with_webmock
+    skip 'No network access can be assumed at Debian package build time'
     Object.send :const_set, :WebMock, nil
     c = @http.connection_for @uri
     assert_instance_of Net::HTTP, c
@@ -480,6 +482,7 @@ class TestNetHttpPersistent < Minitest::
   end
 
   def test_connection_for_no_ssl_reuse
+    skip 'No network access can be assumed at Debian package build time'
     @http.reuse_ssl_sessions = false
     @http.open_timeout = 123
     @http.read_timeout = 321