diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-03-04 23:26:57 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-03-04 23:26:57 +0900 |
commit | f08cd708b11dd5b293986b92bb5e227731665b36 (patch) | |
tree | 616f887c04cdc3a1e47b4ba3c9fe839a279e004a /test/net/http/test_https.rb | |
parent | 528a3a17977aa1843a26630c96635c3cb161e729 (diff) | |
download | ruby-f08cd708b11dd5b293986b92bb5e227731665b36.tar.gz |
Fixed FD leak
Diffstat (limited to 'test/net/http/test_https.rb')
-rw-r--r-- | test/net/http/test_https.rb | 2 |
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 |