1
0
Fork 0
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:
Benoit Daloze 2020-11-08 16:49:03 +01:00
parent fcf8b9ef72
commit b8eb08e096

View file

@ -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