mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix TestFiberMutex#test_condition_variable assertion
* Now that it works correctly.
This commit is contained in:
parent
fcf8b9ef72
commit
b8eb08e096
1 changed files with 3 additions and 5 deletions
|
@ -108,7 +108,7 @@ class TestFiberMutex < Test::Unit::TestCase
|
|||
|
||||
signalled = 0
|
||||
|
||||
thread = Thread.new do
|
||||
Thread.new do
|
||||
scheduler = Scheduler.new
|
||||
Fiber.set_scheduler scheduler
|
||||
|
||||
|
@ -132,11 +132,9 @@ class TestFiberMutex < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
scheduler.run
|
||||
end
|
||||
end.join
|
||||
|
||||
thread.join
|
||||
|
||||
assert_operator signalled, :>, 1
|
||||
assert_equal 3, signalled
|
||||
end
|
||||
|
||||
def test_queue
|
||||
|
|
Loading…
Reference in a new issue