From 936582b8d1b22e4c98765ceb51f80cd210c3b2c5 Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Fri, 1 Sep 2017 13:09:43 -0400 Subject: [PATCH] Correct flaky spec Can fail if the machine running tests has less that 10% free space --- spec/jobs/pull_hotlinked_images_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/jobs/pull_hotlinked_images_spec.rb b/spec/jobs/pull_hotlinked_images_spec.rb index 566b37f3549..2b37f3a2b05 100644 --- a/spec/jobs/pull_hotlinked_images_spec.rb +++ b/spec/jobs/pull_hotlinked_images_spec.rb @@ -82,6 +82,7 @@ describe Jobs::PullHotlinkedImages do end it 'replaces image src' do + SiteSetting.download_remote_images_threshold = 0 post = Fabricate(:post, raw: "#{url}") Jobs::ProcessPost.new.execute(post_id: post.id)