Permalink
Browse files

Change test parameter

Let's see what will happen when we set dpeth = 0
  • Loading branch information...
nahi committed Aug 17, 2011
1 parent 90f6776 commit aaa72871125acfd73138918b4e7f98d146fc1c00
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/test_ssl.rb
View
@@ -99,11 +99,11 @@ def test_verification
assert_equal("hello", @client.get_content(@url))
assert(@verify_callback_called)
#
cfg.verify_depth = 1
cfg.verify_depth = 0
@verify_callback_called = false
begin
@client.get(@url)
assert(false, "verify_depth does not supported? #{OpenSSL::OPENSSL_VERSION}")
assert(false, "verify_depth is not supported? #{OpenSSL::OPENSSL_VERSION}")
rescue OpenSSL::SSL::SSLError => ssle
assert_match(/certificate verify failed/, ssle.message)
assert(@verify_callback_called)

0 comments on commit aaa7287

Please sign in to comment.