File: skip_tests_requiring_net_connectivity

package info (click to toggle)
ruby-net-http-persistent 4.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 228 kB
  • sloc: ruby: 1,703; makefile: 4
file content (26 lines) | stat: -rw-r--r-- 858 bytes parent folder | download
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
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
Last-Update: 2023-10-12

--- a/test/test_net_http_persistent.rb
+++ b/test/test_net_http_persistent.rb
@@ -400,6 +400,7 @@
   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
 
     @http.connection_for @uri do |c|
@@ -412,6 +413,7 @@
   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
     @http.connection_for @uri do |c|
       assert_instance_of Net::HTTP, c.http