mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix regexp and typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ed83af606a
commit
9f350bd713
1 changed files with 2 additions and 2 deletions
|
@ -520,9 +520,9 @@ class TestQueue < Test::Unit::TestCase
|
|||
|
||||
# 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/}
|
||||
Thread.pass until Time.now - t > 10 || (consumers + producers).all?{|thr| thr.status =~ /\A(?:run|sleep)\z/}
|
||||
|
||||
assert (consumers + producers).all?{|thr| thr.status =~ /\Arun|sleep\Z/}, 'no threads runnning'
|
||||
assert (consumers + producers).all?{|thr| thr.status =~ /\A(?:run|sleep)\z/}, 'no threads running'
|
||||
|
||||
# just exercising the concurrency of the support methods.
|
||||
counter = Thread.new do
|
||||
|
|
Loading…
Add table
Reference in a new issue