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

Add a SlotInfo.getCreatedNanoTime and fix flaky test #175

Merged
merged 1 commit into from
Jul 6, 2024

Conversation

chrisvest
Copy link
Owner

The flaky test was relying on overly precise SlotInfo.getAgeMillis, but it is not that uncommon for slots to age 100 milliseconds or more in the heat of a test. The SlotInfo.getCreatedNanoTime side-steps the racy check on age.

The flaky test was relying on overly precise SlotInfo.getAgeMillis, but it is not that uncommon for slots to age 100 milliseconds or more in the heat of a test.
The SlotInfo.getCreatedNanoTime side-steps the racy check on age.
@chrisvest chrisvest merged commit 607f837 into main Jul 6, 2024
5 checks passed
@chrisvest chrisvest deleted the fix-flaky-test branch July 6, 2024 18:53
@chrisvest chrisvest added this to the 4.0 milestone Jul 7, 2024
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