Even more relaxed

This commit is contained in:
Thomas Suckow
2021-01-03 22:26:35 -08:00
parent 733fd712d2
commit f2d209cfaf
+1 -1
View File
@@ -247,7 +247,7 @@ namespace Duplicati.UnitTest
//OSX seem to like to actually set the time to some value earlier than what you set by tens of milliseconds.
//Reading the time right after it is set gives the expected value but when read later it is slightly different.
//Maybe a bug in .net?
var granularity = RuntimeInformation.IsOSPlatform(OSPlatform.OSX) ? 100 : 1;
var granularity = RuntimeInformation.IsOSPlatform(OSPlatform.OSX) ? 500 : 1;
Assert.That(
SystemIO.IO_OS.GetLastWriteTimeUtc(actualFile),
Is.EqualTo(SystemIO.IO_OS.GetLastWriteTimeUtc(expectedFile)).Within(granularity).Milliseconds,