Skip to content

remote-feature-flag-controller: Fix flaky test #5730

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

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

Conversation

mcmire
Copy link
Contributor

@mcmire mcmire commented Apr 29, 2025

Explanation

The test for generateDeterministicRandomNumber sometimes fails because it relies on the behavior of uuidv4, which is non-deterministic, and needs to be more lenient in the range of acceptable return values.

References

Changelog

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed, highlighting breaking changes as necessary
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

The test for `generateDeterministicRandomNumber` sometimes fails because
it relies on the behavior of `uuidv4`, which is non-deterministic, and
needs to be more lenient in the range of acceptable return values.
@mcmire mcmire marked this pull request as ready for review April 29, 2025 19:05
@mcmire mcmire requested review from a team as code owners April 29, 2025 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant