From 6cf568f4b56dcafc5c0fe84df2c0d2491fb0c62b Mon Sep 17 00:00:00 2001 From: hsbt Date: Mon, 14 Dec 2015 08:04:28 +0000 Subject: * 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 --- test/thread/test_queue.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/thread') 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| -- cgit v1.2.3