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:
parent
4c23083c57
commit
bb3f8e32e5
|
@ -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: "{
|
||||
|
|
Loading…
Reference in New Issue