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
Родитель fcf8b9ef72
Коммит b8eb08e096
1 изменённых файлов: 3 добавлений и 5 удалений

Просмотреть файл

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