diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-08-01 22:35:05 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-08-01 22:35:05 +0000 |
commit | fa25f26095cf3d2de410ec509265379246ea5414 (patch) | |
tree | 0703d41c01335d551b062e7d3cbcd407a7651553 /test/net/http/test_https.rb | |
parent | 35186277d14806bc88843701a570f9ab73d91b8a (diff) | |
download | ruby-fa25f26095cf3d2de410ec509265379246ea5414.tar.gz |
* 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
Diffstat (limited to 'test/net/http/test_https.rb')
-rw-r--r-- | test/net/http/test_https.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/net/http/test_https.rb b/test/net/http/test_https.rb index 983ba7f456..4bb4f6d3a6 100644 --- a/test/net/http/test_https.rb +++ b/test/net/http/test_https.rb @@ -110,7 +110,7 @@ class TestNetHTTPS < Test::Unit::TestCase 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 - TCPServer.open(0) {|server| + TCPServer.open('localhost', 0) {|server| port = server.addr[1] conn = Net::HTTP.new('localhost', port) |