Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Freeze time to fix flakey specs #640

Merged
merged 1 commit into from
Nov 21, 2023
Merged

Conversation

jdelStrother
Copy link
Contributor

Noticed a CI failure here - https://github.com/rack/rack-attack/actions/runs/6932050109/job/18855154765 - which I think is due to the system clock rolling over 15:14:00 while mid-test. How about freezing time in these specs?

@santib
Copy link
Collaborator

santib commented Nov 20, 2023

Good catch! I like ActiveSupport::Testing::TimeHelpers but in this gem we are already using Timecop. So I'd prefer to be consistent and stick with it.

@jdelStrother
Copy link
Contributor Author

Oh I missed that. Will send an update

@jdelStrother jdelStrother force-pushed the freeze-time branch 2 times, most recently from b4328d8 to a082440 Compare November 20, 2023 19:31
@santib santib merged commit d3b3da4 into rack:main Nov 21, 2023
102 checks passed
@santib
Copy link
Collaborator

santib commented Nov 21, 2023

Thank you @jdelStrother 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants