mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
OpenSSL may show the different error message
d02211c9da (commitcomment-25119729)
From: MSP-Greg <MSP-Greg@users.noreply.github.com>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
585cbf6535
commit
9ba147dce6
1 changed files with 2 additions and 1 deletions
|
@ -216,7 +216,8 @@ class TestNetHTTPS < Test::Unit::TestCase
|
|||
ex = assert_raise(OpenSSL::SSL::SSLError){
|
||||
http.request_get("/") {|res| }
|
||||
}
|
||||
assert_match(/\ASSL_connect returned=1 errno=0 /, ex.message)
|
||||
re_msg = /\ASSL_connect returned=1 errno=0 |SSL_CTX_set_max_proto_version/
|
||||
assert_match(re_msg, ex.message)
|
||||
end
|
||||
|
||||
end if defined?(OpenSSL::SSL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue