Skip to content

Commit

Permalink
Fix Batch integration test to not exhaust database connection thread …
Browse files Browse the repository at this point in the history
…pool (#1409)
  • Loading branch information
bensheldon authored Jul 8, 2024
1 parent df41bce commit 2356ab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/integration/batch_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def perform(*_args, **_kwargs)

describe 'aggressive async batching' do
it 'can execute multiple jobs' do
allow(GoodJob.configuration).to receive(:max_threads).and_return(20)
allow(GoodJob.configuration).to receive(:max_threads).and_return(15)
capsule = GoodJob::Capsule.new(configuration: GoodJob.configuration)
adapter = GoodJob::Adapter.new(execution_mode: :async_all, _capsule: capsule)

Expand Down

0 comments on commit 2356ab7

Please sign in to comment.