Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions spec/concurrent/executor/thread_pool_shared.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,15 @@
it 'returns zero on creation' do
expect(subject.completed_task_count).to eq 0
end

unless Concurrent.on_jruby?

it 'returns the approximate number of tasks that have been completed thus far' do
5.times{ subject.post{ raise StandardError } }
5.times{ subject.post{ nil } }
subject.post { latch.count_down }
latch.wait(1)
expect(subject.completed_task_count).to be > 0
end

it 'returns the approximate number of tasks that have been completed thus far' do
5.times{ subject.post{ raise StandardError } }
5.times{ subject.post{ nil } }
subject.post { latch.count_down }
latch.wait(1)
subject.shutdown
expect(subject.wait_for_termination(pool_termination_timeout)).to eq true
expect(subject.completed_task_count).to be > 0
end
end

Expand Down