Don't retry trying to download a file in test.
This commit is contained in:
parent
5f4ff4a8c0
commit
347e4eadbc
@ -24,7 +24,7 @@ module Jobs
|
||||
follow_redirect: true
|
||||
)
|
||||
rescue
|
||||
if (retries -= 1) > 0
|
||||
if (retries -= 1) > 0 && !Rails.env.test?
|
||||
sleep 1
|
||||
retry
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user