diff options
Diffstat (limited to 'test/net/http/test_http.rb')
-rw-r--r-- | test/net/http/test_http.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/net/http/test_http.rb b/test/net/http/test_http.rb index 660c0ffa7c..f863ba62c7 100644 --- a/test/net/http/test_http.rb +++ b/test/net/http/test_http.rb @@ -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]" # 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) |