Commit 76a15db4 authored by Sean McGivern's avatar Sean McGivern

Merge branch '29832-fix-transient-failure' into 'master'

Make ChatNames::FindUserService stable by not checking a precise time

Closes #29832

See merge request !10306
parents 412c9e8b 1cc9bf86
......@@ -18,9 +18,16 @@ describe ChatNames::FindUserService, services: true do
end
it 'updates when last time chat name was used' do
expect(chat_name.last_used_at).to be_nil
subject
expect(chat_name.reload.last_used_at).to be_like_time(Time.now)
initial_last_used = chat_name.reload.last_used_at
expect(initial_last_used).to be_present
Timecop.travel(2.days.from_now) { described_class.new(service, params).execute }
expect(chat_name.reload.last_used_at).to be > initial_last_used
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment