Skip to content

Fix Sts flakey test#6979

Merged
davidh44 merged 1 commit into
masterfrom
hdavidh/fix-sts-flakey-test
May 20, 2026
Merged

Fix Sts flakey test#6979
davidh44 merged 1 commit into
masterfrom
hdavidh/fix-sts-flakey-test

Conversation

@davidh44
Copy link
Copy Markdown
Contributor

Motivation and Context

Test checks that token delay is greater than 0, but Random.nextInt(x) in fact does has a small chance of returning 0

Purpose of test is to ensure that IdpCommunicationErrorException is retried. strategy.refreshRetryToken(refresh) succeeding validates this, otherwise it would throw TokenAcquisitionFailedException

Modifications

Update assertion to .isNotNull()

@davidh44 davidh44 requested a review from a team as a code owner May 19, 2026 22:16
@davidh44 davidh44 enabled auto-merge May 19, 2026 22:25
@davidh44 davidh44 added this pull request to the merge queue May 19, 2026
Merged via the queue into master with commit f2bd404 May 20, 2026
13 checks passed
@github-actions
Copy link
Copy Markdown

This pull request has been closed and the conversation has been locked. Comments on closed PRs are hard for our team to see. If you need more assistance, please open a new issue that references this one.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 20, 2026
@davidh44 davidh44 deleted the hdavidh/fix-sts-flakey-test branch May 20, 2026 02:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants