aboutsummaryrefslogtreecommitdiffstats
path: root/test/thread
diff options
context:
space:
mode:
Diffstat (limited to 'test/thread')
-rw-r--r--test/thread/test_queue.rb2
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|