DEV: Fix another time-sensitive flaky spec

This commit is contained in:
Jarek Radosz 2020-03-27 20:39:25 +01:00
parent 9026c55fe4
commit 104b647ca4

View File

@ -1748,6 +1748,7 @@ describe Topic do
let(:topic) { Fabricate(:topic, category: category) }
it "should be able to override category's default auto close" do
freeze_time
Jobs.run_immediately!
expect(topic.topic_timers.first.execute_at).to eq_time(topic.created_at + 4.hours)