Skip to content

Commit

Permalink
fix: set enqueue_after_transaction_commit to never in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
palkan committed Aug 12, 2024
1 parent fda4a27 commit dbe97ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/support/rails_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ class TestApp < Rails::Application
config.logger = ENV["LOG"] ? Logger.new($stdout) : Logger.new("/dev/null")

config.active_support.test_order = :random
# TODO: Update tests to work with the default Rails 8 configuration
config.active_job.enqueue_after_transaction_commit = :never if config.respond_to?(:active_job)

config.after_initialize do
Rails.backtrace_cleaner.remove_silencers!
Expand Down

0 comments on commit dbe97ab

Please sign in to comment.