Skip to content

Commit

Permalink
Specify :test queue adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
kigster committed Oct 3, 2024
1 parent 85c3f28 commit 8d80382
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@
# Raise error when a before_action's only/except options reference missing actions
config.action_controller.raise_on_missing_callback_actions = true

config.active_job.queue_adapter = :test

config.stripe = {
secret_api_key: Rails.application.credentials.test.dig(:stripe, :secret_api_key),
publishable_api_key: Rails.application.credentials.test.dig(:stripe, :publishable_api_key)
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

config.around do |example|
# 10 seconds should be more than enough for ANY spec
Timeout.timeout(ENV.fetch('RSPEC_TIMEOUT', 10).to_i) do
Timeout.timeout(ENV.fetch('RSPEC_TIMEOUT', 30).to_i) do
example.run
end
end
Expand Down

0 comments on commit 8d80382

Please sign in to comment.