From 0f37049aad33c302e42965c84bcc4bdf0cfa457c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 12 Jan 2026 12:05:04 +0000 Subject: [PATCH 1/8] Initial plan From 90c8ff8650697b64b638a05db4b5d6c1eb3a961b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 12 Jan 2026 12:05:11 +0000 Subject: [PATCH 2/8] Initial plan From 292da90184f6e835a955a9320567a48fb36b09ba Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 12 Jan 2026 12:05:22 +0000 Subject: [PATCH 3/8] Initial plan From 3a636531e887495fd51c90edcb1dca307e345665 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 12 Jan 2026 12:05:34 +0000 Subject: [PATCH 4/8] Initial plan From 64a09eb0f8a99fcbd8311f2a4efbec6352ba3c45 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 12 Jan 2026 12:06:47 +0000 Subject: [PATCH 5/8] Fix typo in TestBase.cs comment: 'akways' -> 'always' Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com> --- tests/SharpCompress.Test/TestBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/SharpCompress.Test/TestBase.cs b/tests/SharpCompress.Test/TestBase.cs index e65305e1..702d6bca 100644 --- a/tests/SharpCompress.Test/TestBase.cs +++ b/tests/SharpCompress.Test/TestBase.cs @@ -55,7 +55,7 @@ public class TestBase : IAsyncDisposable Directory.CreateDirectory(SCRATCH2_FILES_PATH); } - //akways use async dispose since we have I/O and sync Dispose doesn't wait when using xunit + //always use async dispose since we have I/O and sync Dispose doesn't wait when using xunit public async ValueTask DisposeAsync() { await Task.CompletedTask; From 921cff00a5bc3e68e4a676d7c1b521f951b14d42 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 12 Jan 2026 12:08:09 +0000 Subject: [PATCH 6/8] Fix async test method naming: rename Sync to Async Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com> --- tests/SharpCompress.Test/Zip/ZipArchiveAsyncTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/SharpCompress.Test/Zip/ZipArchiveAsyncTests.cs b/tests/SharpCompress.Test/Zip/ZipArchiveAsyncTests.cs index dfb84ffa..41420f98 100644 --- a/tests/SharpCompress.Test/Zip/ZipArchiveAsyncTests.cs +++ b/tests/SharpCompress.Test/Zip/ZipArchiveAsyncTests.cs @@ -119,7 +119,7 @@ public class ZipArchiveAsyncTests : ArchiveTests } [Fact] - public async ValueTask Zip_Random_Write_Remove_Sync() + public async ValueTask Zip_Random_Write_Remove_Async() { var scratchPath = Path.Combine(SCRATCH_FILES_PATH, "Zip.deflate.mod.zip"); var unmodified = Path.Combine(TEST_ARCHIVES_PATH, "Zip.deflate.noEmptyDirs.zip"); @@ -141,7 +141,7 @@ public class ZipArchiveAsyncTests : ArchiveTests } [Fact] - public async ValueTask Zip_Random_Write_Add_Sync() + public async ValueTask Zip_Random_Write_Add_Async() { var jpg = Path.Combine(ORIGINAL_FILES_PATH, "jpg", "test.jpg"); var scratchPath = Path.Combine(SCRATCH_FILES_PATH, "Zip.deflate.mod.zip"); From f4b1780d8ad0d749a1ff59b6e4aa45b90228b583 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 12 Jan 2026 12:08:23 +0000 Subject: [PATCH 7/8] Rename async test methods to use _Async suffix instead of _Sync Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com> --- tests/SharpCompress.Test/Zip/ZipArchiveAsyncTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/SharpCompress.Test/Zip/ZipArchiveAsyncTests.cs b/tests/SharpCompress.Test/Zip/ZipArchiveAsyncTests.cs index dfb84ffa..41420f98 100644 --- a/tests/SharpCompress.Test/Zip/ZipArchiveAsyncTests.cs +++ b/tests/SharpCompress.Test/Zip/ZipArchiveAsyncTests.cs @@ -119,7 +119,7 @@ public class ZipArchiveAsyncTests : ArchiveTests } [Fact] - public async ValueTask Zip_Random_Write_Remove_Sync() + public async ValueTask Zip_Random_Write_Remove_Async() { var scratchPath = Path.Combine(SCRATCH_FILES_PATH, "Zip.deflate.mod.zip"); var unmodified = Path.Combine(TEST_ARCHIVES_PATH, "Zip.deflate.noEmptyDirs.zip"); @@ -141,7 +141,7 @@ public class ZipArchiveAsyncTests : ArchiveTests } [Fact] - public async ValueTask Zip_Random_Write_Add_Sync() + public async ValueTask Zip_Random_Write_Add_Async() { var jpg = Path.Combine(ORIGINAL_FILES_PATH, "jpg", "test.jpg"); var scratchPath = Path.Combine(SCRATCH_FILES_PATH, "Zip.deflate.mod.zip"); From 95c409d97944444952d67f00a764a19b0f57c6a3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 12 Jan 2026 12:09:12 +0000 Subject: [PATCH 8/8] Change File.Create to File.OpenWrite in TarReaderAsyncTests for consistency Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com> --- tests/SharpCompress.Test/Tar/TarReaderAsyncTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/SharpCompress.Test/Tar/TarReaderAsyncTests.cs b/tests/SharpCompress.Test/Tar/TarReaderAsyncTests.cs index d6a04546..4be59584 100644 --- a/tests/SharpCompress.Test/Tar/TarReaderAsyncTests.cs +++ b/tests/SharpCompress.Test/Tar/TarReaderAsyncTests.cs @@ -92,7 +92,7 @@ public class TarReaderAsyncTests : ReaderTests } var destinationFileName = Path.Combine(destdir, file.NotNull()); - using var fs = File.Create(destinationFileName); + using var fs = File.OpenWrite(destinationFileName); await entryStream.CopyToAsync(fs); } }