1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

close a socket in test_socket_new.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2011-11-03 10:55:26 +00:00
parent cead180d3f
commit df6a0fe8bb

View file

@ -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