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

[ECO-2390] Fix flaky sdk e2e test due to period boundary cross miscalculation #338

Merged
merged 3 commits into from
Nov 12, 2024

Conversation

xbtmatt
Copy link
Collaborator

@xbtmatt xbtmatt commented Nov 12, 2024

Description

The submit.test.ts e2e test for the SDK would sometimes fail because it wasn't properly calculating the number of period boundaries crossed between two bump events.

To fix it, I added a function that calculates the number of period boundaries crossed between a start time and end time and calculate the number of period boundaries crossed between any two bump event start/end times.

Testing

  • Added unit tests for the new calculatePeriodicBoundariesCrossed function
  • Update the e2e tests to use the new function

The tests will run in CI for this PR.

Checklist

  • Did you update relevant documentation?
  • Did you add tests to cover new code or a fixed issue?
  • Did you update the changelog?
  • Did you check all checkboxes from the linked Linear task?

@xbtmatt xbtmatt requested review from alnoki and CRBl69 November 12, 2024 02:19
Copy link

vercel bot commented Nov 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
emojicoin-dot-fun ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 12, 2024 8:23pm
emojicoin-dot-fun-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 12, 2024 8:23pm

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.

3 participants