diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-14 07:17:18 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-14 07:17:18 +0000 |
commit | 67172a240103ed20d297fffd113171da7b4f3e5b (patch) | |
tree | 62203e001b6281775fb76278bf249249b3278d33 /test/net/http | |
parent | 326659c0bfdd9adc1f4a032ced0374dbb6a7bcc8 (diff) | |
download | ruby-67172a240103ed20d297fffd113171da7b4f3e5b.tar.gz |
* test/net/http/test_https_proxy.rb
(HTTPSProxyTest::test_https_proxy_authentication): initialize
local variable 't' first. [ruby-dev:32253]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net/http')
-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) |