-
Notifications
You must be signed in to change notification settings - Fork 593
chore: ensure consistent HA DB timestamps #20398
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
base: merge-train/spartan
Are you sure you want to change the base?
Conversation
| const diffSeconds = Math.abs(timestamp1 - timestamp2); | ||
|
|
||
| // Should be less than 1 second apart (not hours due to timezone interpretation) | ||
| expect(diffSeconds).toBeLessThan(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feels like a value this tight could cause flakey test runs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point, updating. we just need to check it's not hours so can definitely be more tolerant
TypeScript validationAction required: Please fix the docs examples or update them to match the current API. cc @AztecProtocol/devrel |
Fixes [A-543](https://linear.app/aztec-labs/issue/A-543/ensure-no-timezone-issues-when-cleaning-up-old-duties) Also add note to docs for users to know that they can't use the same DB for nodes running on different rollup versions Follow-up from comments on #20060
9085095 to
62e99e0
Compare
Fixes A-543
Also add note to docs for users to know that they can't use the same DB for nodes running on different rollup versions
Follow-up from comments on #20060