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

Fix test warning in 9.0 #5437

Merged
merged 1 commit into from
Sep 20, 2024
Merged

Fix test warning in 9.0 #5437

merged 1 commit into from
Sep 20, 2024

Conversation

eerhardt
Copy link
Member

@eerhardt eerhardt commented Sep 20, 2024

Test methods should not call ConfigureAwait(false), as it may bypass parallelization limits. Omit ConfigureAwait, or use ConfigureAwait(true) to avoid CA2007. (https://xunit.net/xunit.analyzers/rules/xUnit1030)

This is blocking #5435

See https://github.com/dotnet/extensions/pull/5435/checks?check_run_id=30404388453

cc @rwoll

Microsoft Reviewers: Open in CodeFlow

Test methods should not call ConfigureAwait(false), as it may bypass parallelization limits. Omit ConfigureAwait, or use ConfigureAwait(true) to avoid CA2007. (https://xunit.net/xunit.analyzers/rules/xUnit1030)

See https://github.com/dotnet/extensions/pull/5435/checks?check_run_id=30404388453
Copy link
Contributor

@dariusclay dariusclay left a comment

Choose a reason for hiding this comment

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

Thanks for the catch! Nowhere else are we using .ConfigureAwait(false)

@dariusclay dariusclay merged commit 05df083 into dotnet:main Sep 20, 2024
6 checks passed
@rwoll
Copy link
Contributor

rwoll commented Sep 20, 2024

@dariusclay / @eerhardt - Looks like htere's another test (from before that PR) that calls it as well:

var (d, r) = await RoslynTestUtils.RunGenerator(

@eerhardt eerhardt deleted the FixTestWarnings branch September 20, 2024 18:17
@eerhardt
Copy link
Member Author

Looks like that got removed in the dev branch with

62c74d3#diff-c8046fc49e1b5a2d71a80ae4566b8a4567b68adef5f6b5a8d0f75026341d15ff

cc @joperezr

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.

3 participants