-
Notifications
You must be signed in to change notification settings - Fork 510
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
Remove ConfigureAwait(false) in tests? #3742
Comments
I found this which contained some background to xUnit1130: xunit/xunit#2628 I kind of "hoped" that running too many tests in parallel could have a negative impact on execution time etc, but after benchmarking a bit on my laptop with and without ConfigureAwait I don't see any clear differences. Will try it on github for a while too, in case it behaves differently there. |
it's not about all In general, one might want to run a group of tests in a serial fashion, using Anyway, since nobody noticed this issue to this day, it might be a non-issue in practice. So maybe it can be qualified as "nice to have". |
Ok, then I misunderstood the reasoning behind it. Thanks for clarifying! I am pretty sure there is no correctness issue related to it in this repository at this moment, but it seems like a good idea to follow their analyzers. A decision will need to be taken when xunit is updated, at the latest. |
We will likely have to disable xUnit1030, because there are many places in Roslyn where |
@MartyIX asked why we have ConfigureAwait(false) in the test projects: #3719 (comment)
In later xUnit versions, there is an analyzer which warns about this due to potential parallelization issues (https://xunit.net/xunit.analyzers/rules/xUnit1030), so it seems to be a valid question.
The text was updated successfully, but these errors were encountered: