From 414e8be44daee16d9d8f488c95353bd96efc6f43 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 1 May 2026 13:54:46 +0000 Subject: [PATCH 1/2] fix: explicitly dispose summaryWriter before reading file in truncation tests Agent-Logs-Url: https://github.com/Tyrrrz/GitHubActionsTestLogger/sessions/d5137236-5f84-47a5-bdba-80abe55513dd Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> --- GitHubActionsTestLogger.Tests/MtpSummarySpecs.cs | 1 + GitHubActionsTestLogger.Tests/VsTestSummarySpecs.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/GitHubActionsTestLogger.Tests/MtpSummarySpecs.cs b/GitHubActionsTestLogger.Tests/MtpSummarySpecs.cs index a6892d7..ff5dcfc 100644 --- a/GitHubActionsTestLogger.Tests/MtpSummarySpecs.cs +++ b/GitHubActionsTestLogger.Tests/MtpSummarySpecs.cs @@ -370,6 +370,7 @@ public async Task I_can_try_to_use_the_logger_to_produce_a_summary_when_the_outp await app.RunAsync(); await summaryWriter.FlushAsync(); + await summaryWriter.DisposeAsync(); // Assert var commandOutput = commandWriter.ToString(); diff --git a/GitHubActionsTestLogger.Tests/VsTestSummarySpecs.cs b/GitHubActionsTestLogger.Tests/VsTestSummarySpecs.cs index 8e0c41b..845e0b6 100644 --- a/GitHubActionsTestLogger.Tests/VsTestSummarySpecs.cs +++ b/GitHubActionsTestLogger.Tests/VsTestSummarySpecs.cs @@ -415,6 +415,7 @@ public async Task I_can_try_to_use_the_logger_to_produce_a_summary_when_the_outp ); await summaryWriter.FlushAsync(); + summaryWriter.Dispose(); // Assert var commandOutput = commandWriter.ToString(); From 6d846bccca30ac10594ffbffe02127f4d254f2cd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 1 May 2026 13:55:22 +0000 Subject: [PATCH 2/2] fix: use DisposeAsync consistently in VsTestSummarySpecs.cs Agent-Logs-Url: https://github.com/Tyrrrz/GitHubActionsTestLogger/sessions/d5137236-5f84-47a5-bdba-80abe55513dd Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> --- GitHubActionsTestLogger.Tests/VsTestSummarySpecs.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GitHubActionsTestLogger.Tests/VsTestSummarySpecs.cs b/GitHubActionsTestLogger.Tests/VsTestSummarySpecs.cs index 845e0b6..b34035a 100644 --- a/GitHubActionsTestLogger.Tests/VsTestSummarySpecs.cs +++ b/GitHubActionsTestLogger.Tests/VsTestSummarySpecs.cs @@ -415,7 +415,7 @@ public async Task I_can_try_to_use_the_logger_to_produce_a_summary_when_the_outp ); await summaryWriter.FlushAsync(); - summaryWriter.Dispose(); + await summaryWriter.DisposeAsync(); // Assert var commandOutput = commandWriter.ToString();