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
|
end
|
||||||
|
|
||||||
it 'works for logged in user' do
|
it 'works for logged in user' do
|
||||||
|
freeze_time
|
||||||
sign_in(user1)
|
sign_in(user1)
|
||||||
delete "/u/recent-searches.json"
|
delete "/u/recent-searches.json"
|
||||||
|
|
||||||
|
@ -5141,6 +5142,7 @@ describe UsersController do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'works for logged in user' do
|
it 'works for logged in user' do
|
||||||
|
freeze_time
|
||||||
sign_in(user1)
|
sign_in(user1)
|
||||||
SiteSetting.log_search_queries = true
|
SiteSetting.log_search_queries = true
|
||||||
user1.user_option.update!(oldest_search_log_date: nil)
|
user1.user_option.update!(oldest_search_log_date: nil)
|
||||||
|
|
Loading…
Reference in New Issue