mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/socket/test_tcp.rb (test_recvfrom, test_encoding): shouldn't assume
that th is not nil. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
67b445f895
commit
14c06bd441
1 changed files with 4 additions and 4 deletions
|
@ -18,8 +18,8 @@ assert false, "TODO: doesn't work on mswin32/64" if /mswin/ =~ RUBY_PLATFORM
|
|||
sock = TCPSocket.open(addr[2], addr[1])
|
||||
assert_equal(["foo", nil], sock.recvfrom(0x10000))
|
||||
ensure
|
||||
th.kill
|
||||
th.join
|
||||
th.kill if th
|
||||
th.join if th
|
||||
end
|
||||
|
||||
def test_encoding
|
||||
|
@ -36,8 +36,8 @@ assert false, "TODO: doesn't work on mswin32/64" if /mswin/ =~ RUBY_PLATFORM
|
|||
assert_equal("foo\r\n", s)
|
||||
assert_equal(Encoding.find("ASCII-8BIT"), s.encoding)
|
||||
ensure
|
||||
th.kill
|
||||
th.join
|
||||
th.kill if th
|
||||
th.join if th
|
||||
sock.close if sock
|
||||
end
|
||||
end if defined?(TCPSocket)
|
||||
|
|
Loading…
Reference in a new issue