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

[chore] Make tests more cacheable by avoiding time.Now() #656

Merged
merged 1 commit into from
Jun 19, 2022

Conversation

tsmethurst
Copy link
Contributor

This PR updates the testrig to avoid unnecessary use of time.Now() where possible. This was preventing tests from being cached properly by our CI/CD system, and resulted in almost all tests being run for every PR, even when code pertaining to those tests was not changed. Now, far more tests should be cached, which will save time, processing power, and errors.

@tsmethurst tsmethurst merged commit 610395d into main Jun 19, 2022
@tsmethurst tsmethurst deleted the time_now_removal branch June 19, 2022 15:10
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.

None yet

1 participant