Revert "DEV: Queue jobs in tests by default."

Too risky for now

This reverts commit be28154d3b.
This commit is contained in:
Guo Xiang Tan
2018-05-31 15:34:46 +08:00
parent 2b783997fa
commit 56e9ff6853
42 changed files with 79 additions and 75 deletions

View File

@@ -176,10 +176,6 @@ RSpec.describe TopicTimer, type: :model do
)
end
before do
SiteSetting.queue_jobs = false
end
it 'should close the topic' do
topic_timer
expect(topic.reload.closed).to eq(true)
@@ -205,10 +201,6 @@ RSpec.describe TopicTimer, type: :model do
)
end
before do
SiteSetting.queue_jobs = false
end
it 'should open the topic' do
topic_timer
expect(topic.reload.closed).to eq(false)
@@ -247,6 +239,10 @@ RSpec.describe TopicTimer, type: :model do
end
describe '.ensure_consistency!' do
before do
SiteSetting.queue_jobs = true
end
it 'should enqueue jobs that have been missed' do
close_topic_timer = Fabricate(:topic_timer,
execute_at: Time.zone.now - 1.hour,