mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 07:52:45 +08:00
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user