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.
This commit is contained in:
David Taylor 2019-03-22 19:27:37 +00:00
parent 4c23083c57
commit bb3f8e32e5
1 changed files with 1 additions and 0 deletions

View File

@ -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: "{