DEV: Fix intermittent failing spec. (#15308)

This commit is contained in:
Alan Guo Xiang Tan 2021-12-15 16:51:46 +08:00 committed by GitHub
parent e37f0eb240
commit 6fe4c8ae58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)