mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/net/http/test_http.rb (TestNetHTTP_version_1_1_methods#test_timeout_during_HTTP_session):
If you connect to localhost, you should listen localhost. * test/net/http/test_https.rb (TestNetHTTPS#test_timeout_during_SSL_handshake): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
35186277d1
commit
fa25f26095
3 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
Tue Aug 2 07:33:29 2011 URABE Shyouhei <shyouhei@ruby-lang.org>
|
||||||
|
|
||||||
|
* test/net/http/test_http.rb (TestNetHTTP_version_1_1_methods#test_timeout_during_HTTP_session):
|
||||||
|
If you connect to localhost, you should listen localhost.
|
||||||
|
|
||||||
|
* test/net/http/test_https.rb (TestNetHTTPS#test_timeout_during_SSL_handshake):
|
||||||
|
ditto.
|
||||||
|
|
||||||
Tue Aug 2 06:18:15 2011 Luis Lavena <luislavena@gmail.com>
|
Tue Aug 2 06:18:15 2011 Luis Lavena <luislavena@gmail.com>
|
||||||
|
|
||||||
* lib/rubygems/installer.rb (class Gem): Correct path check on Windows
|
* lib/rubygems/installer.rb (class Gem): Correct path check on Windows
|
||||||
|
|
|
@ -194,7 +194,7 @@ module TestNetHTTP_version_1_1_methods
|
||||||
bug4246 = "expected the HTTP session to have timed out but have not. c.f. [ruby-core:34203]"
|
bug4246 = "expected the HTTP session to have timed out but have not. c.f. [ruby-core:34203]"
|
||||||
|
|
||||||
# listen for connections... but deliberately do not complete SSL handshake
|
# listen for connections... but deliberately do not complete SSL handshake
|
||||||
TCPServer.open(0) {|server|
|
TCPServer.open('localhost', 0) {|server|
|
||||||
port = server.addr[1]
|
port = server.addr[1]
|
||||||
|
|
||||||
conn = Net::HTTP.new('localhost', port)
|
conn = Net::HTTP.new('localhost', port)
|
||||||
|
|
|
@ -110,7 +110,7 @@ class TestNetHTTPS < Test::Unit::TestCase
|
||||||
bug4246 = "expected the SSL connection to have timed out but have not. [ruby-core:34203]"
|
bug4246 = "expected the SSL connection to have timed out but have not. [ruby-core:34203]"
|
||||||
|
|
||||||
# listen for connections... but deliberately do not complete SSL handshake
|
# listen for connections... but deliberately do not complete SSL handshake
|
||||||
TCPServer.open(0) {|server|
|
TCPServer.open('localhost', 0) {|server|
|
||||||
port = server.addr[1]
|
port = server.addr[1]
|
||||||
|
|
||||||
conn = Net::HTTP.new('localhost', port)
|
conn = Net::HTTP.new('localhost', port)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue