Skip to content

Commit e984056

Browse files
CopilotKnerio
andcommitted
Fix PostgreSQL connection leak by using test adapter
Co-authored-by: Knerio <96529060+Knerio@users.noreply.github.com>
1 parent 57c93b5 commit e984056

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

config/environments/test.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
# ActionMailer::Base.deliveries array.
4747
config.action_mailer.delivery_method = :test
4848

49+
# Use test adapter for ActiveJob to avoid connection leaks from GoodJob
50+
config.active_job.queue_adapter = :test
51+
4952
# Print deprecation notices to the stderr.
5053
config.active_support.deprecation = :stderr
5154

0 commit comments

Comments
 (0)