BUGFIX: race condition in blocking_tick

causes erratic spec failure
This commit is contained in:
Sam 2014-02-07 08:40:43 +11:00
parent f27ffe3223
commit 0efcb9cee9

View File

@ -45,7 +45,7 @@ module Scheduler
end
def wait_till_done
while !@queue.empty? && !@queue.num_waiting == 1
while !@queue.empty? && !@queue.num_waiting > 0
sleep 0.001
end
end