summaryrefslogtreecommitdiff
path: root/test/net/http/test_https.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-03-04 23:26:57 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-03-04 23:26:57 +0900
commitf08cd708b11dd5b293986b92bb5e227731665b36 (patch)
tree616f887c04cdc3a1e47b4ba3c9fe839a279e004a /test/net/http/test_https.rb
parent528a3a17977aa1843a26630c96635c3cb161e729 (diff)
downloadruby-f08cd708b11dd5b293986b92bb5e227731665b36.tar.gz
Fixed FD leak
Diffstat (limited to 'test/net/http/test_https.rb')
-rw-r--r--test/net/http/test_https.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/net/http/test_https.rb b/test/net/http/test_https.rb
index 64101b6bda..660104d048 100644
--- a/test/net/http/test_https.rb
+++ b/test/net/http/test_https.rb
@@ -212,6 +212,8 @@ class TestNetHTTPS < Test::Unit::TestCase
http.cert_store = TEST_STORE
http.verify_hostname = false
assert_nothing_raised { http.start }
+ ensure
+ http&.finish
end
end