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

change per job sleep of 5 seconds back to 3 in unit test

parent 20457a1f
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,7 @@ describe GRPC::Pool do ...@@ -55,7 +55,7 @@ describe GRPC::Pool do
it 'it stops being ready after all workers jobs waiting or running' do it 'it stops being ready after all workers jobs waiting or running' do
p = Pool.new(5) p = Pool.new(5)
p.start p.start
job = proc { sleep(5) } # sleep so workers busy when done scheduling job = proc { sleep(3) } # sleep so workers busy when done scheduling
5.times do 5.times do
expect(p.ready_for_work?).to be(true) expect(p.ready_for_work?).to be(true)
p.schedule(&job) p.schedule(&job)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment