diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-14 08:04:28 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-14 08:04:28 +0000 |
commit | 90e4b4fb0c63cbf9ed6f170dc21ada7f5c8d6e92 (patch) | |
tree | d38103e91a35989ac33514fe49d7875bd11d3e37 /test/thread | |
parent | a1760485333d1061ec23385a6041388bf9e98068 (diff) | |
download | ruby-90e4b4fb0c63cbf9ed6f170dc21ada7f5c8d6e92.tar.gz |
* bootstraptest/runner.rb: use safe navigation operator.
[fix GH-1142] Patch by @mlarraz
* test/openssl/test_pair.rb: ditto.
* test/ruby/test_econv.rb: ditto.
* test/ruby/test_settracefunc.rb: ditto.
* test/thread/test_queue.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/thread')
-rw-r--r-- | test/thread/test_queue.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/thread/test_queue.rb b/test/thread/test_queue.rb index 59d51e730c..7ab6d1e01e 100644 --- a/test/thread/test_queue.rb +++ b/test/thread/test_queue.rb @@ -427,7 +427,7 @@ class TestQueue < Test::Unit::TestCase # wait for all threads to be finished, because of exceptions # NOTE: thr.status will be nil (raised) or false (terminated) - sleep 0.01 until prod_threads && prod_threads.all?{|thr| !thr.status} + sleep 0.01 until prod_threads&.all?{|thr| !thr.status} # check that all threads failed to call push prod_threads.each do |thr| |