Skip to content

Commit

Permalink
Set AJ return_false_on_aborted_enqueue true in the test suite:
Browse files Browse the repository at this point in the history
- Since this is going to be the default in 6.1, let's set it in the
  test suite to avoid deprecation warning.
  Otherwise one has to do `AS::Deprecation.silence { }` everytime we
  add a new test.

  Fix rails#38107
  • Loading branch information
Edouard-chin committed Dec 28, 2019
1 parent 6cbd81c commit be60970
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions activejob/test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
else
ActiveJob::Base.logger = Logger.new(nil)
ActiveJob::Base.skip_after_callbacks_if_terminated = true
ActiveJob::Base.return_false_on_aborted_enqueue = true
require "adapters/#{@adapter}"
end

Expand Down

0 comments on commit be60970

Please sign in to comment.