Skip to content

Fix flaky bigdecimal test by using delta expectations.#178

Merged
estebanz01 merged 1 commit into
masterfrom
fix-flaky-bigdecimal-test
Jul 26, 2025
Merged

Fix flaky bigdecimal test by using delta expectations.#178
estebanz01 merged 1 commit into
masterfrom
fix-flaky-bigdecimal-test

Conversation

@estebanz01
Copy link
Copy Markdown
Owner

Description

Due to the nature of the approximations, we need to have a tolerance of error when checking bigdecimals, so we fix this flaky test by using a delta comparison with an error precision of 1e-4.

Related PRs

  • None.

@estebanz01 estebanz01 force-pushed the fix-flaky-bigdecimal-test branch from 51d4f7d to 5dda37b Compare July 26, 2025 17:47
shamangeorge
shamangeorge previously approved these changes Jul 26, 2025
Due to the nature of the approximations, we need to have a tolerance of
error when checking `bigdecimal`s, so we fix this flaky test by using a
delta comparison with an error precision of 1e-4.
@estebanz01 estebanz01 force-pushed the fix-flaky-bigdecimal-test branch from 5dda37b to 011e288 Compare July 26, 2025 18:35
@estebanz01 estebanz01 merged commit 2f1b883 into master Jul 26, 2025
8 checks passed
@estebanz01 estebanz01 deleted the fix-flaky-bigdecimal-test branch July 26, 2025 18:37
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.

2 participants