diff --git a/test/socket/test_basicsocket.rb b/test/socket/test_basicsocket.rb index 4d11521e9e..0671e97c75 100644 --- a/test/socket/test_basicsocket.rb +++ b/test/socket/test_basicsocket.rb @@ -98,7 +98,7 @@ class TestSocket_BasicSocket < Test::Unit::TestCase end def socks - sserv = TCPServer.new(0) + sserv = TCPServer.new('localhost', 0) ssock = nil t = Thread.new { ssock = sserv.accept } csock = TCPSocket.new('localhost', sserv.addr[1])