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

Fixing flaky test #5163

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

Fixing flaky test #5163

wants to merge 1 commit into from

Conversation

trwalke
Copy link
Member

@trwalke trwalke commented Feb 28, 2025

Fixes #

Changes proposed in this request
This test sometimes throws a null ref. Adding extra checks

Testing

Performance impact

Documentation

  • All relevant documentation is updated.

@trwalke trwalke requested a review from a team as a code owner February 28, 2025 19:52
var token = app2.AppTokenCacheInternal.Accessor.GetAllAccessTokens().Where(x => x.AdditionalCacheKeyComponents.Any()).FirstOrDefault();
var token = app2.AppTokenCacheInternal.Accessor.GetAllAccessTokens()
.Where(x =>
x.AdditionalCacheKeyComponents != null &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you use x.AdditionalCacheKeyComponents?.Any() == true ?

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