Repository navigation
fix flaky test_backfill_monthly_metrics_for_site by freezing time - #387
Merged
Merged
Conversation
`test_backfill_monthly_metrics_for_site` seems to fail sometimes depending on the time it's being run. using [pytest-freezegun](https://pypi.org/project/pytest-freezegun/) to freeze the time and make sure it returns consistent results.
OmarIthawi
force-pushed
the
freeze_time_backfill_test_data
branch
from
July 8, 2021 09:35
6d971da to
0cc7065
Compare
OmarIthawi
marked this pull request as ready for review
July 8, 2021 09:38
thraxil
approved these changes
Jul 8, 2021
thraxil
left a comment
Contributor
There was a problem hiding this comment.
Yes, we meet again datetime.now()...
Contributor
Author
I knew you'd be "excited" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
test_backfill_monthly_metrics_for_siteseems to fail sometimes depending on the time it's being run. using pytest-freezegun to freeze the time and make sure it returns consistent results.Old failure on Jun 30, 2021