Skip to content

Commit

Permalink
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/mri/thread/test_queue.rb
Original file line number Diff line number Diff line change
@@ -515,7 +515,10 @@ def test_queue_close_multi_multi
end
end

# No dead or finished threads
# No dead or finished threads, give up to 10 seconds to start running
t = Time.now
Thread.pass until Time.now - t > 10 || (consumers + producers).all?{|thr| thr.status =~ /\Arun|sleep\Z/}

assert (consumers + producers).all?{|thr| thr.status =~ /\Arun|sleep\Z/}, 'no threads runnning'

# just exercising the concurrency of the support methods.

0 comments on commit fabc2db

Please sign in to comment.