mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_beginendblock.rb: avoid leaking threads
* test/ruby/test_beginendblock.rb (test_endblock_raise): not only kill, but also wait the end. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4e741f4b89
commit
361978beb2
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ EOW
|
|||
assert_match(/e1/, out)
|
||||
assert_match(/e6/, out)
|
||||
ensure
|
||||
th.kill if th.alive?
|
||||
th.kill.join if th.alive?
|
||||
end
|
||||
|
||||
def test_nested_at_exit
|
||||
|
|
Loading…
Reference in a new issue