From 05df0833c0b889bd8f795e14643efa270dfdbd1e Mon Sep 17 00:00:00 2001 From: Eric Erhardt Date: Fri, 20 Sep 2024 11:02:25 -0500 Subject: [PATCH] Fix test warning in 9.0 (#5437) 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 --- .../Microsoft.Gen.Logging/Unit/ParserTests.LogProperties.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/Generators/Microsoft.Gen.Logging/Unit/ParserTests.LogProperties.cs b/test/Generators/Microsoft.Gen.Logging/Unit/ParserTests.LogProperties.cs index b6257c2d694..b638be739b1 100644 --- a/test/Generators/Microsoft.Gen.Logging/Unit/ParserTests.LogProperties.cs +++ b/test/Generators/Microsoft.Gen.Logging/Unit/ParserTests.LogProperties.cs @@ -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())