summaryrefslogtreecommitdiff
path: root/test/ruby/test_thread_cv.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_thread_cv.rb')
-rw-r--r--test/ruby/test_thread_cv.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_thread_cv.rb b/test/ruby/test_thread_cv.rb
index eb88b9606c..e5fd513c5c 100644
--- a/test/ruby/test_thread_cv.rb
+++ b/test/ruby/test_thread_cv.rb
@@ -70,13 +70,13 @@ class TestThreadConditionVariable < Test::Unit::TestCase
end
end
end
- sleep 0.1
+ Thread.pass until threads.all?(&:stop?)
mutex.synchronize do
result << "P1"
condvar.broadcast
result << "P2"
end
- Timeout.timeout(5) do
+ Timeout.timeout(60) do
nr_threads.times do |i|
threads[i].join
end