[DRE-commits] [ruby-hiredis] 05/07: Disable an additional network test
Apollon Oikonomopoulos
apoikos at moszumanska.debian.org
Fri Oct 23 12:06:54 UTC 2015
This is an automated email from the git hooks/post-receive script.
apoikos pushed a commit to branch master
in repository ruby-hiredis.
commit 5242ff5695913225f56c22e2310f42a0634859d0
Author: Apollon Oikonomopoulos <apoikos at debian.org>
Date: Fri Oct 23 14:58:54 2015 +0300
Disable an additional network test
---
debian/patches/disable-network-tests.patch | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/debian/patches/disable-network-tests.patch b/debian/patches/disable-network-tests.patch
index 37070d5..fc33c7e 100644
--- a/debian/patches/disable-network-tests.patch
+++ b/debian/patches/disable-network-tests.patch
@@ -9,7 +9,27 @@ Forwarded: no
Last-Update: 2014-04-14
--- a/test/connection_test.rb
+++ b/test/connection_test.rb
-@@ -151,41 +151,44 @@
+@@ -80,12 +80,13 @@
+ thread.join
+ end
+
+- def test_connect_wrong_host
+- ex = assert_raises RuntimeError do
+- hiredis.connect("nonexisting", 6379)
+- end
+- assert ex.message =~ /(can't resolve)|(name or service not known)/i
+- end
++ ## The following test does not work reliably with all possible environments.
++ #def test_connect_wrong_host
++ # ex = assert_raises RuntimeError do
++ # hiredis.connect("nonexisting", 6379)
++ # end
++ # assert ex.message =~ /(can't resolve)|(name or service not known)/i
++ #end
+
+ def test_connect_wrong_port
+ assert_raises Errno::ECONNREFUSED do
+@@ -151,41 +152,44 @@
end
end
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-hiredis.git
More information about the Pkg-ruby-extras-commits
mailing list