Skip to content
Snippets Groups Projects
Commit d611160f authored by apolcyn's avatar apolcyn Committed by GitHub
Browse files

Merge pull request #9018 from apolcyn/fix_ruby_pool_flake

remove test of exception on ruby thread pool overload
parents 19cd772a fa5e31c6
No related branches found
No related tags found
No related merge requests found
...@@ -94,18 +94,6 @@ describe GRPC::Pool do ...@@ -94,18 +94,6 @@ describe GRPC::Pool do
expect(q.pop).to be(o) expect(q.pop).to be(o)
p.stop p.stop
end end
it 'it throws an error if all of the workers have tasks to do' do
p = Pool.new(5)
p.start
job = proc {}
5.times do
expect(p.ready_for_work?).to be(true)
p.schedule(&job)
end
expect { p.schedule(&job) }.to raise_error
expect { p.schedule(&job) }.to raise_error
end
end end
describe '#stop' do describe '#stop' do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment