Skip to content

Commit

Permalink
Fix test warning in 9.0 (#5437)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
eerhardt committed Sep 20, 2024
1 parent 1d9d44f commit 05df083
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,7 @@ partial class MyLogger
Assembly.GetAssembly(typeof(DateTime))!,
},
[source],
symbols)
.ConfigureAwait(false);
symbols);

Assert.Empty(d);
await Verifier.Verify(r[0].SourceText.ToString())
Expand Down

0 comments on commit 05df083

Please sign in to comment.