mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fixed FD leak
This commit is contained in:
parent
528a3a1797
commit
f08cd708b1
1 changed files with 2 additions and 0 deletions
|
@ -212,6 +212,8 @@ class TestNetHTTPS < Test::Unit::TestCase
|
||||||
http.cert_store = TEST_STORE
|
http.cert_store = TEST_STORE
|
||||||
http.verify_hostname = false
|
http.verify_hostname = false
|
||||||
assert_nothing_raised { http.start }
|
assert_nothing_raised { http.start }
|
||||||
|
ensure
|
||||||
|
http&.finish
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue