diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-24 13:30:54 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-24 13:30:54 +0000 |
commit | e4f1108afce5b59919ade0f8d9aae18790b3fbcc (patch) | |
tree | 364a761e7c4a300f34ca67d0342dcc42054de300 /test | |
parent | c9e4363d5e2e47a909b2ae1bd59564785fb4d18a (diff) | |
download | ruby-e4f1108afce5b59919ade0f8d9aae18790b3fbcc.tar.gz |
test_http.rb: fix r58855
* test/net/http/test_http.rb (test_s_start): git rid of error when
failed to start a connection.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/net/http/test_http.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/net/http/test_http.rb b/test/net/http/test_http.rb index dcb02db31c..9f766c5722 100644 --- a/test/net/http/test_http.rb +++ b/test/net/http/test_http.rb @@ -237,7 +237,7 @@ module TestNetHTTP_version_1_1_methods 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 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 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 |