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:
parent
cead180d3f
commit
df6a0fe8bb
@ -7,8 +7,12 @@ end
|
|||||||
|
|
||||||
class TestSocket < Test::Unit::TestCase
|
class TestSocket < Test::Unit::TestCase
|
||||||
def test_socket_new
|
def test_socket_new
|
||||||
|
begin
|
||||||
s = Socket.new(:INET, :STREAM)
|
s = Socket.new(:INET, :STREAM)
|
||||||
assert_kind_of(Socket, s)
|
assert_kind_of(Socket, s)
|
||||||
|
ensure
|
||||||
|
s.close
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_unpack_sockaddr
|
def test_unpack_sockaddr
|
||||||
|
Loading…
x
Reference in New Issue
Block a user