Skip to content

Commit 89174f9

Browse files
authored
Apply suggestions from code review
1 parent 70abd32 commit 89174f9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

StyleCop.Analyzers/StyleCop.Analyzers.Test.CSharp9/ReadabilityRules/SA1137CSharp9UnitTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
namespace StyleCop.Analyzers.Test.CSharp9.ReadabilityRules
55
{
6+
using System.Threading;
67
using System.Threading.Tasks;
78
using Microsoft.CodeAnalysis.Testing;
89
using StyleCop.Analyzers.Test.CSharp8.ReadabilityRules;
@@ -51,13 +52,12 @@ int Property
5152
class MyAttribute : Attribute { }
5253
";
5354

54-
var test = new CSharpTest
55+
await new CSharpTest
5556
{
5657
ReferenceAssemblies = ReferenceAssemblies.Net.Net50,
5758
TestCode = testCode,
5859
FixedCode = fixedCode,
59-
};
60-
await test.RunAsync().ConfigureAwait(false);
60+
}.RunAsync(CancellationToken.None).ConfigureAwait(false);
6161
}
6262
}
6363
}

0 commit comments

Comments
 (0)