We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de789ad commit f072146Copy full SHA for f072146
spec/concurrent/atomic/condition_spec.rb
@@ -272,6 +272,7 @@ module Concurrent
272
it 'wakes up all threads' do
273
mutex = Mutex.new
274
go = CountDownLatch.new(2)
275
+
276
threads = Array.new(2) do
277
Thread.new do
278
mutex.synchronize do
@@ -280,12 +281,12 @@ module Concurrent
280
281
end
282
283
284
285
go.wait
286
mutex.synchronize { subject.broadcast }
287
+ joined = threads.map(&:join)
288
- threads.each do |t|
- expect(t.join(5)).to eq t
- end
289
+ expect(joined).to eq threads
290
291
292
0 commit comments