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

Fixed flaky test in ParallelIterableTestCase#sumOfFloatConsistentRounding #1724

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

IamLRBA
Copy link

@IamLRBA IamLRBA commented Oct 25, 2024

Changes

  • Increased the Delta (Tolerance): I increased the delta value in the assertEquals call to allow for small floating-point precision differences. In the first case, the delta was currently set to 1.0e-15.

Since the difference in your test is in the range of 1.0e-16, we could increase the delta slightly, for example to 1.0e-13. This should be able to fix the flaky test caused by slight floating-point rounding differences.

@IamLRBA
Copy link
Author

IamLRBA commented Oct 25, 2024

cc
@motlin

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.

1 participant