diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/socket/test_socket.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/socket/test_socket.rb b/test/socket/test_socket.rb index dd1e5c87c0..e2517671ff 100644 --- a/test/socket/test_socket.rb +++ b/test/socket/test_socket.rb @@ -7,8 +7,12 @@ end class TestSocket < Test::Unit::TestCase def test_socket_new - s = Socket.new(:INET, :STREAM) - assert_kind_of(Socket, s) + begin + s = Socket.new(:INET, :STREAM) + assert_kind_of(Socket, s) + ensure + s.close + end end def test_unpack_sockaddr |