mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
ensure to restart antoher thread
This commit is contained in:
parent
bbfc262c99
commit
c974ee1abe
1 changed files with 2 additions and 0 deletions
|
@ -300,6 +300,8 @@ class TestMonitor < Test::Unit::TestCase
|
|||
result4 = cond.wait
|
||||
assert_equal(true, result4)
|
||||
assert_equal("bar", c)
|
||||
ensure
|
||||
queue3.enq(nil)
|
||||
end
|
||||
end
|
||||
assert_join_threads([th, th2])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue