From 9ba147dce6f56557caf4b514830a3aff08b3e8ab Mon Sep 17 00:00:00 2001 From: naruse Date: Mon, 23 Oct 2017 08:28:05 +0000 Subject: OpenSSL may show the different error message https://github.com/ruby/ruby/commit/d02211c9da608742b09aec768db79442007eabc0#commitcomment-25119729 From: MSP-Greg git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/net/http/test_https.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/net') 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) -- cgit v1.2.3