DEV: Take 2 Queue jobs in tests by default.

On my machine this cuts the time taken to run our test suite
from ~11mins to ~9mins.
This commit is contained in:
Guo Xiang Tan
2018-05-31 15:53:49 +08:00
parent 56e9ff6853
commit 7fc8a36529
45 changed files with 82 additions and 78 deletions

View File

@ -1066,6 +1066,7 @@ describe User do
context "with a reply" do
before do
SiteSetting.queue_jobs = false
PostCreator.new(Fabricate(:user),
raw: 'whatever this is a raw post',
topic_id: topic.id,
@ -1237,7 +1238,6 @@ describe User do
describe "refresh_avatar" do
it "enqueues the update_gravatar job when automatically downloading gravatars" do
SiteSetting.automatically_download_gravatars = true
SiteSetting.queue_jobs = true
user = Fabricate(:user)