[DRE-commits] [ruby-httpclient] 01/02: Fix tests

Balasankar C balasankarc-guest at moszumanska.debian.org
Tue Jan 12 07:41:16 UTC 2016


This is an automated email from the git hooks/post-receive script.

balasankarc-guest pushed a commit to branch master
in repository ruby-httpclient.

commit 455ced6b299393caf2193e09fdbe3eb5d52f3e73
Author: Balasankar C <balasankarc at autistici.org>
Date:   Tue Jan 12 13:10:23 2016 +0530

    Fix tests
---
 debian/patches/0005-tweak-test-dep-change.patch | 21 +++++++++++++++++++++
 debian/patches/series                           |  1 +
 2 files changed, 22 insertions(+)

diff --git a/debian/patches/0005-tweak-test-dep-change.patch b/debian/patches/0005-tweak-test-dep-change.patch
new file mode 100644
index 0000000..4402d16
--- /dev/null
+++ b/debian/patches/0005-tweak-test-dep-change.patch
@@ -0,0 +1,21 @@
+Description: Tweak tests to support latest version of dependency
+ One of the test makes sure that SSLv3 is not supported by expecting an 
+ SSLError to be raised. But in latest versions of openssl, an ArgumentError 
+ is raised in such situations. Patched the test to use that instead.
+Author: Balasankar C <balasankarc at autistici.org>
+Last-Update: 2016-01-12
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/test/test_ssl.rb
++++ b/test/test_ssl.rb
+@@ -171,8 +171,8 @@
+ 
+   def test_no_sslv3
+     teardown_server
+-    setup_server_with_ssl_version(:SSLv3)
+-    assert_raise(OpenSSL::SSL::SSLError) do
++    assert_raise(ArgumentError) do
++      setup_server_with_ssl_version(:SSLv3)
+       @client.ssl_config.verify_mode = nil
+       @client.get("https://localhost:#{serverport}/hello")
+     end
diff --git a/debian/patches/series b/debian/patches/series
index c1fc4fc..bab992f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
 0002-Disable-tests-for-NTLM.patch
 0003-Try-to-wait-until-socket-is-free.patch
 0004-Add-upstream-changelog.patch
+0005-tweak-test-dep-change.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-httpclient.git



More information about the Pkg-ruby-extras-commits mailing list