зеркало из https://github.com/github/ruby.git
Fix TestFiberMutex#test_condition_variable assertion
* Now that it works correctly.
This commit is contained in:
Родитель
fcf8b9ef72
Коммит
b8eb08e096
|
@ -108,7 +108,7 @@ class TestFiberMutex < Test::Unit::TestCase
|
||||||
|
|
||||||
signalled = 0
|
signalled = 0
|
||||||
|
|
||||||
thread = Thread.new do
|
Thread.new do
|
||||||
scheduler = Scheduler.new
|
scheduler = Scheduler.new
|
||||||
Fiber.set_scheduler scheduler
|
Fiber.set_scheduler scheduler
|
||||||
|
|
||||||
|
@ -132,11 +132,9 @@ class TestFiberMutex < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
scheduler.run
|
scheduler.run
|
||||||
end
|
end.join
|
||||||
|
|
||||||
thread.join
|
assert_equal 3, signalled
|
||||||
|
|
||||||
assert_operator signalled, :>, 1
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_queue
|
def test_queue
|
||||||
|
|
Загрузка…
Ссылка в новой задаче