Fix test to use deterministic DateTime value per code review

Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-10-25 15:53:09 +00:00
parent 999a1eb327
commit 1cd24593e9

View File

@@ -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