1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test_monitor.rb: fix leaked threads

* test/monitor/test_monitor.rb (test_killed_thread_in_synchronize):
  join work threads not to leak threads.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-05-26 08:04:02 +00:00
parent 93fc059178
commit 72c4c9edda

View file

@ -78,6 +78,9 @@ class TestMonitor < Test::Unit::TestCase
ary << :main
end
assert_equal([:main], ary)
ensure
t1.join
t2.join
end
def test_try_enter