spec/jobs.rb in asynchronic-3.0.0 vs spec/jobs.rb in asynchronic-3.0.1
- old
+ new
@@ -198,10 +198,10 @@
class WithRetriesJob < Asynchronic::Job
def call
@counter = 0
- retry_when [RuntimeError] do
+ retry_when [RuntimeError], 0.1 do
@counter += 1
raise 'Counter < 3' if @counter < 3
@counter
end
end