diff options
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) |