aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2018-09-18 14:35:39 -0400
committerGitHub <noreply@github.com>2018-09-18 14:35:39 -0400
commit1b90f614b1b3d06b7f02a8b9ea6cd84f15d58643 (patch)
tree4f56f766914c46f0767e636399a7c7c939bbde16 /activejob/test
parentafea273960e286712c86c272015a6a4767677992 (diff)
parentb6b5a7ac524a8c22d9ca162e53d752141f974651 (diff)
downloadrails-1b90f614b1b3d06b7f02a8b9ea6cd84f15d58643.tar.gz
rails-1b90f614b1b3d06b7f02a8b9ea6cd84f15d58643.tar.bz2
rails-1b90f614b1b3d06b7f02a8b9ea6cd84f15d58643.zip
Merge pull request #33897 from bogdanvlviv/follow-up-33751
Follow up #33751
Diffstat (limited to 'activejob/test')
-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