mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
Don't retry trying to download a file in test.
This commit is contained in:
@@ -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