aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test/cases
diff options
context:
space:
mode:
authorbogdanvlviv <bogdanvlviv@gmail.com>2018-09-16 17:39:55 +0300
committerbogdanvlviv <bogdanvlviv@gmail.com>2018-09-16 17:46:24 +0300
commitb6b5a7ac524a8c22d9ca162e53d752141f974651 (patch)
tree1c9adf873cedfea3bfd361e2580ff48b5d704913 /activejob/test/cases
parentfa2001ace68767daa126c6aaf7b120ff021af07b (diff)
downloadrails-b6b5a7ac524a8c22d9ca162e53d752141f974651.tar.gz
rails-b6b5a7ac524a8c22d9ca162e53d752141f974651.tar.bz2
rails-b6b5a7ac524a8c22d9ca162e53d752141f974651.zip
`retry_job` should publish `enqueue_retry.active_job` notification
Also this commit removes `:wait` from payload of `retry_stopped.active_job`. Related to https://github.com/rails/rails/pull/33751#discussion_r214140008 Follow up #33751 /cc @kaspth, @rafaelfranca
Diffstat (limited to 'activejob/test/cases')
-rw-r--r--activejob/test/cases/logging_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activejob/test/cases/logging_test.rb b/activejob/test/cases/logging_test.rb
index 2e8d2ef7c0..b5bf40c83b 100644
--- a/activejob/test/cases/logging_test.rb
+++ b/activejob/test/cases/logging_test.rb
@@ -173,6 +173,11 @@ class LoggingTest < ActiveSupport::TestCase
end
end
+ def test_enqueue_retry_logging_on_retry_job
+ perform_enqueued_jobs { RescueJob.perform_later "david" }
+ assert_match(/Retrying RescueJob in nil seconds, due to a nil\. The original exception was nil\./, @logger.messages)
+ end
+
def test_retry_stopped_logging
perform_enqueued_jobs do
RetryJob.perform_later "CustomCatchError", 6