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:
parent
cead180d3f
commit
df6a0fe8bb
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue