Even more relaxed
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user