ruby-changes:48265
From: naruse <ko1@a...>
Date: Mon, 23 Oct 2017 17:28:09 +0900 (JST)
Subject: [ruby-changes:48265] naruse:r60380 (trunk): OpenSSL may show the different error message
naruse 2017-10-23 17:28:05 +0900 (Mon, 23 Oct 2017) New Revision: 60380 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60380 Log: OpenSSL may show the different error message https://github.com/ruby/ruby/commit/d02211c9da608742b09aec768db79442007eabc0#commitcomment-25119729 From: MSP-Greg <MSP-Greg@u...> Modified files: trunk/test/net/http/test_https.rb Index: test/net/http/test_https.rb =================================================================== --- test/net/http/test_https.rb (revision 60379) +++ test/net/http/test_https.rb (revision 60380) @@ -216,7 +216,8 @@ class TestNetHTTPS < Test::Unit::TestCas https://github.com/ruby/ruby/blob/trunk/test/net/http/test_https.rb#L216 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) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/