diff options
Diffstat (limited to 'test/socket')
-rw-r--r-- | test/socket/test_socket.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/socket/test_socket.rb b/test/socket/test_socket.rb index c94861b06c..4055c825c9 100644 --- a/test/socket/test_socket.rb +++ b/test/socket/test_socket.rb @@ -102,7 +102,7 @@ class TestSocket < Test::Unit::TestCase c = Socket.new(Socket::AF_INET, Socket::SOCK_STREAM, 0) c.connect(serv.getsockname) fd, peeraddr = serv.sysaccept - assert_equal(c.getsockname, peeraddr) + assert_equal(c.getsockname, peeraddr.to_sockaddr) ensure serv.close if serv c.close if c |