From 1cd24593e99c931742a44d8fe5cc7775abe2a904 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 25 Oct 2025 15:53:09 +0000 Subject: [PATCH] Fix test to use deterministic DateTime value per code review Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com> --- tests/SharpCompress.Test/AsyncTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/SharpCompress.Test/AsyncTests.cs b/tests/SharpCompress.Test/AsyncTests.cs index 9497dac2..a67f8f00 100644 --- a/tests/SharpCompress.Test/AsyncTests.cs +++ b/tests/SharpCompress.Test/AsyncTests.cs @@ -1,3 +1,4 @@ +using System; using System.IO; using System.Linq; using System.Threading; @@ -80,7 +81,7 @@ public class AsyncTests : TestBase { var testFile = Path.Combine(TEST_ARCHIVES_PATH, "Tar.tar.gz"); using var fileStream = File.OpenRead(testFile); - await writer.WriteAsync("test_entry.bin", fileStream, System.DateTime.Now); + await writer.WriteAsync("test_entry.bin", fileStream, new DateTime(2023, 1, 1)); } // Verify the archive was created and contains the entry