Repository navigation
Fix test failing due to timestamp setup - #4562
Merged
Merged
Conversation
aerosol
approved these changes
Sep 10, 2024
Contributor
Author
|
Hah, actually got ninja'd at discovering what caused it by @ruslandoga with #4502 (comment) - just noticed now 😅 |
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.
Changes
Today one test started consistently failing across local dev envs and CI:
Ultimately it turned out the setup had part of events with timestamp setup explicitly to 2024-10-08 and part not, while the endpoint query used implicit date (today) and implicit period (last 30 days). Once the fixed timestamp entries went beyond 30 days since 2024-08-10, the test started failing. This PR changes the test to use fixed time consistently.