# File test/test_multi_process.rb, line 505 def test_timeout socket = TCPSocket.new('localhost', SERVER_PORT) setsockopt(socket) begin sleep(0.1) # wait for timeout assert_nil(socket.gets) ensure socket.close end end