DEV: Run pull_hotlinked_images onebox specs without synchronous jobs

DEV: Run pull_hotlinked_images onebox specs without synchronous jobs

This was changed in fa5a1586, and caused a mutex to lock up, adding 60 seconds to the test suite.

diff --git a/spec/jobs/pull_hotlinked_images_spec.rb b/spec/jobs/pull_hotlinked_images_spec.rb
index 2450b7b..ee74fba 100644
--- a/spec/jobs/pull_hotlinked_images_spec.rb
+++ b/spec/jobs/pull_hotlinked_images_spec.rb
@@ -72,6 +72,7 @@ describe Jobs::PullHotlinkedImages do
       let(:api_url) { "https://en.wikipedia.org/w/api.php?action=query&titles=#{media}&prop=imageinfo&iilimit=50&iiprop=timestamp|user|url&iiurlwidth=500&format=json" }
 
       before do
+        Jobs.run_later!
         stub_request(:head, url)
         stub_request(:get, url).to_return(body: '')
         stub_request(:get, api_url).to_return(body: "{

GitHub sha: bb3f8e32

1 Like