Don't retry trying to download a file in test.

This commit is contained in:
Guo Xiang Tan 2018-03-28 12:54:11 +08:00
parent 5f4ff4a8c0
commit 347e4eadbc

View File

@ -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