ruby-changes:46757
From: nobu <ko1@a...>
Date: Wed, 24 May 2017 22:31:00 +0900 (JST)
Subject: [ruby-changes:46757] nobu:r58872 (trunk): test_http.rb: fix r58855
nobu 2017-05-24 22:30:54 +0900 (Wed, 24 May 2017) New Revision: 58872 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58872 Log: test_http.rb: fix r58855 * test/net/http/test_http.rb (test_s_start): git rid of error when failed to start a connection. Modified files: trunk/test/net/http/test_http.rb Index: test/net/http/test_http.rb =================================================================== --- test/net/http/test_http.rb (revision 58871) +++ test/net/http/test_http.rb (revision 58872) @@ -237,7 +237,7 @@ module TestNetHTTP_version_1_1_methods https://github.com/ruby/ruby/blob/trunk/test/net/http/test_http.rb#L237 begin h = Net::HTTP.start(config('host'), config('port')) ensure - h.finish + h.finish if h end assert_equal config('host'), h.address assert_equal config('port'), h.port @@ -246,7 +246,7 @@ module TestNetHTTP_version_1_1_methods https://github.com/ruby/ruby/blob/trunk/test/net/http/test_http.rb#L246 begin h = Net::HTTP.start(config('host'), config('port'), :ENV) ensure - h.finish + h.finish if h end assert_equal config('host'), h.address assert_equal config('port'), h.port @@ -255,7 +255,7 @@ module TestNetHTTP_version_1_1_methods https://github.com/ruby/ruby/blob/trunk/test/net/http/test_http.rb#L255 begin h = Net::HTTP.start(config('host'), config('port'), nil) ensure - h.finish + h.finish if h end assert_equal config('host'), h.address assert_equal config('port'), h.port -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/