test/jobs/rescue_job.rb in activejob-retry-0.2.0 vs test/jobs/rescue_job.rb in activejob-retry-0.3.0
- old
+ new
@@ -1,9 +1,9 @@
require_relative '../support/job_buffer'
class RescueJob < ActiveJob::Base
include ActiveJob::Retry
- constant_retry limit: 2, delay: 0
+ constant_retry limit: 0, delay: 0
class OtherError < StandardError; end
rescue_from(ArgumentError) do
JobBuffer.add('rescued from ArgumentError')