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:
parent
93fc059178
commit
72c4c9edda
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue