mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:17:08 +08:00
DEV: Freeze time in time-sensitive specs (#16062)
Hopefully fixes a flake 🙂
This commit is contained in:
parent
e613aef419
commit
c97b4d530a
|
@ -5125,6 +5125,7 @@ describe UsersController do
|
|||
end
|
||||
|
||||
it 'works for logged in user' do
|
||||
freeze_time
|
||||
sign_in(user1)
|
||||
delete "/u/recent-searches.json"
|
||||
|
||||
|
@ -5141,6 +5142,7 @@ describe UsersController do
|
|||
end
|
||||
|
||||
it 'works for logged in user' do
|
||||
freeze_time
|
||||
sign_in(user1)
|
||||
SiteSetting.log_search_queries = true
|
||||
user1.user_option.update!(oldest_search_log_date: nil)
|
||||
|
|
Loading…
Reference in New Issue
Block a user