Skip to content
Snippets Groups Projects
Commit fa5e31c6 authored by Alexander Polcyn's avatar Alexander Polcyn
Browse files

remove ruby thread pool unit test of exception on overload

parent 7c9076ab
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