summaryrefslogtreecommitdiff
path: root/test/drb/drbtest.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-28 08:03:55 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-28 08:03:55 +0000
commit73cf9abd1c88eec81e86f697f29a6cbe58ad3d27 (patch)
tree70e40ceae4c4781bd6404130dcd2b71fb7991e3d /test/drb/drbtest.rb
parentca2c5ded936d306dde111e11754da56ca42555ef (diff)
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
Diffstat (limited to 'test/drb/drbtest.rb')
-rw-r--r--test/drb/drbtest.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/drb/drbtest.rb b/test/drb/drbtest.rb
index 8ca575089f..d0e859d56a 100644
--- a/test/drb/drbtest.rb
+++ b/test/drb/drbtest.rb
@@ -191,6 +191,10 @@ module DRbCore
assert_raise(TimeoutError) do
@there.do_timeout(ten)
end
+ ensure
+ DRbService.server.instance_variable_get(:@grp).list.each do |th|
+ th.kill.join
+ end
end
def test_07_public_private_protected_missing