ruby-changes:48199
From: naruse <ko1@a...>
Date: Sun, 22 Oct 2017 01:34:38 +0900 (JST)
Subject: [ruby-changes:48199] naruse:r60313 (trunk): fic expected error message
naruse 2017-10-22 01:34:34 +0900 (Sun, 22 Oct 2017) New Revision: 60313 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60313 Log: fic expected error message Modified files: trunk/test/net/http/test_https.rb Index: test/net/http/test_https.rb =================================================================== --- test/net/http/test_https.rb (revision 60312) +++ test/net/http/test_https.rb (revision 60313) @@ -212,11 +212,11 @@ class TestNetHTTPS < Test::Unit::TestCas https://github.com/ruby/ruby/blob/trunk/test/net/http/test_https.rb#L212 http.verify_callback = Proc.new do |preverify_ok, store_ctx| true end - @log_tester = lambda {|log| assert_match(/SSLv3 read client hello/, log[0] ) } + @log_tester = lambda {|log| assert_not_equal([], log) } ex = assert_raise(OpenSSL::SSL::SSLError){ http.request_get("/") {|res| } } - assert_match(/no protocols available/, ex.message) + assert_match(/\ASSL_connect returned=1 errno=0 /, ex.message) end end if defined?(OpenSSL::SSL) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/