diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-23 08:28:05 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-23 08:28:05 +0000 |
commit | 9ba147dce6f56557caf4b514830a3aff08b3e8ab (patch) | |
tree | bbc4729ca2ebde1744946f82094fbf891986dbcd /test/net/http/test_https.rb | |
parent | 585cbf65351ca10ebe673fefac22fdb9864779eb (diff) |
OpenSSL may show the different error message
https://github.com/ruby/ruby/commit/d02211c9da608742b09aec768db79442007eabc0#commitcomment-25119729
From: MSP-Greg <[email protected]>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net/http/test_https.rb')
-rw-r--r-- | test/net/http/test_https.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/net/http/test_https.rb b/test/net/http/test_https.rb index 5aaea40139..23631111b7 100644 --- a/test/net/http/test_https.rb +++ b/test/net/http/test_https.rb @@ -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) |