From 6fe4c8ae58086ed28ce557c21850263ba85bceff Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Wed, 15 Dec 2021 16:51:46 +0800 Subject: [PATCH] DEV: Fix intermittent failing spec. (#15308) --- spec/models/user_stat_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/models/user_stat_spec.rb b/spec/models/user_stat_spec.rb index 6ebe36f1bfd..80e2adbaa66 100644 --- a/spec/models/user_stat_spec.rb +++ b/spec/models/user_stat_spec.rb @@ -90,6 +90,8 @@ describe UserStat do end it 'updates first unread pm timestamp correctly' do + freeze_time + user = Fabricate(:user, last_seen_at: Time.zone.now) user_2 = Fabricate(:user, last_seen_at: Time.zone.now) pm_topic = Fabricate(:private_message_topic, user: user, recipient: user_2)