diff options
Diffstat (limited to 'test/net/http/test_https_proxy.rb')
-rw-r--r-- | test/net/http/test_https_proxy.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/net/http/test_https_proxy.rb b/test/net/http/test_https_proxy.rb index 6332319f26..66ca3ddd9b 100644 --- a/test/net/http/test_https_proxy.rb +++ b/test/net/http/test_https_proxy.rb @@ -6,6 +6,7 @@ require 'test/unit' class HTTPSProxyTest < Test::Unit::TestCase def test_https_proxy_authentication + t = nil TCPServer.open("127.0.0.1", 0) {|serv| _, port, _, _ = serv.addr t = Thread.new { @@ -25,6 +26,8 @@ class HTTPSProxyTest < Test::Unit::TestCase proxy_request, "[ruby-dev:25673]") } + ensure + t.join if t end end if defined?(OpenSSL) |