diff --git a/app/jobs/regular/pull_hotlinked_images.rb b/app/jobs/regular/pull_hotlinked_images.rb index b920c60590..7de892a84e 100644 --- a/app/jobs/regular/pull_hotlinked_images.rb +++ b/app/jobs/regular/pull_hotlinked_images.rb @@ -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