mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
326659c0bf
commit
67172a2401
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Wed Nov 14 16:16:17 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* test/net/http/test_https_proxy.rb
|
||||||
|
(HTTPSProxyTest::test_https_proxy_authentication): initialize
|
||||||
|
local variable 't' first. [ruby-dev:32253]
|
||||||
|
|
||||||
Wed Nov 14 15:39:24 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Wed Nov 14 15:39:24 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* test/socket/test_socket.rb: update not to use 1.8 assignment to
|
* test/socket/test_socket.rb: update not to use 1.8 assignment to
|
||||||
|
|
|
@ -6,6 +6,7 @@ require 'test/unit'
|
||||||
|
|
||||||
class HTTPSProxyTest < Test::Unit::TestCase
|
class HTTPSProxyTest < Test::Unit::TestCase
|
||||||
def test_https_proxy_authentication
|
def test_https_proxy_authentication
|
||||||
|
t = nil
|
||||||
TCPServer.open("127.0.0.1", 0) {|serv|
|
TCPServer.open("127.0.0.1", 0) {|serv|
|
||||||
_, port, _, _ = serv.addr
|
_, port, _, _ = serv.addr
|
||||||
t = Thread.new {
|
t = Thread.new {
|
||||||
|
@ -25,6 +26,8 @@ class HTTPSProxyTest < Test::Unit::TestCase
|
||||||
proxy_request,
|
proxy_request,
|
||||||
"[ruby-dev:25673]")
|
"[ruby-dev:25673]")
|
||||||
}
|
}
|
||||||
|
ensure
|
||||||
|
t.join if t
|
||||||
end
|
end
|
||||||
end if defined?(OpenSSL)
|
end if defined?(OpenSSL)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue