File: 0002-Disable-image-test-requiring-network-access.patch

package info (click to toggle)
ruby-ffaker 2.13.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,380 kB
  • sloc: ruby: 11,495; makefile: 8; sh: 1
file content (23 lines) | stat: -rw-r--r-- 747 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
From: Daniel Leidert <dleidert@debian.org>
Date: Sat, 29 Feb 2020 14:33:11 +0100
Subject: Disable image test requiring network access

This test fails in environments without internet access:
Error: test_image_file(TestImage): SocketError: Failed to open TCP connection to via.placeholder.com:443 (getaddrinfo: Temporary failure in name resolution)
---
 test/test_image.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/test_image.rb b/test/test_image.rb
index 356b518..635b458 100644
--- a/test/test_image.rb
+++ b/test/test_image.rb
@@ -45,7 +45,7 @@ class TestImage < Test::Unit::TestCase
     end
   end
 
-  def test_image_file
+  def __test_image_file
     assert_equal(@tester.file.class.name, 'File')
   end
 end