Skip to content

Conversation

Leo-Fish
Copy link

The requestWhenConsentRequestThenReturnAccessTokenResponse test is found to be non-deterministic because it relies on the iteration order of unordered Set in the test setup.

This commit resolves the issue by ensuring a stable order by modifying 2 files:

  1. The selection of a redirect_uri from the RegisteredClient is now deterministic by sorting the collection before selecting an element.

  2. The creation of the OAuth2Authorization test data in TestOAuth2Authorizations was updated to handle unordered collections.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants