Skip to content

Commit

Permalink
Update async usage to conform to static analysis rules (#7238)
Browse files Browse the repository at this point in the history
  • Loading branch information
jander-msft authored Aug 31, 2024
1 parent 3d0d257 commit fc63082
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ public OpenApiGeneratorTests(ITestOutputHelper outputHelper)
/// is the same that is generated from the dotnet-monitor binaries.
/// </summary>
[Fact]
public async Task BaselineDifferenceTest()
public async Task BaselineDifferenceTestAsync()
{
using FileStream stream = await GenerateDocumentAsync();
using StreamReader reader = new(stream);

// Renormalize line endings due to git checkout normalizing to the operating system preference.
string baselineContent = File.ReadAllText(OpenApiBaselinePath).Replace("\r\n", "\n");
string generatedContent = reader.ReadToEnd();
string generatedContent = await reader.ReadToEndAsync();

bool equal = string.Equals(baselineContent, generatedContent, StringComparison.Ordinal);
if (!equal)
Expand Down Expand Up @@ -91,7 +91,7 @@ public void BaselineIsValidTest()
/// Test that the generated OpenAPI document is valid.
/// </summary>
[Fact]
public async Task GeneratedIsValidTest()
public async Task GeneratedIsValidTestAsync()
{
using FileStream stream = await GenerateDocumentAsync();

Expand Down

0 comments on commit fc63082

Please sign in to comment.