mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
drbtest.rb: avoid leaking threads
* test/drb/drbtest.rb (test_06_timeout): clean up worker threads to avoid leaking threads. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ca2c5ded93
commit
73cf9abd1c
1 changed files with 4 additions and 0 deletions
|
@ -191,6 +191,10 @@ module DRbCore
|
||||||
assert_raise(TimeoutError) do
|
assert_raise(TimeoutError) do
|
||||||
@there.do_timeout(ten)
|
@there.do_timeout(ten)
|
||||||
end
|
end
|
||||||
|
ensure
|
||||||
|
DRbService.server.instance_variable_get(:@grp).list.each do |th|
|
||||||
|
th.kill.join
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_07_public_private_protected_missing
|
def test_07_public_private_protected_missing
|
||||||
|
|
Loading…
Add table
Reference in a new issue