Fix flaky time-based spec using be_within matcher
What does this MR do and why?
(Hopefully be_within
matcher and a small number of seconds:
expect(Date.current).to be_within(5.seconds).of(today + 3.days)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Resolves #345345 (closed)
Edited by Dallas Reedy