diff --git a/Duplicati/UnitTest/TestUtils.cs b/Duplicati/UnitTest/TestUtils.cs index a09a0e912..68fa80d1e 100644 --- a/Duplicati/UnitTest/TestUtils.cs +++ b/Duplicati/UnitTest/TestUtils.cs @@ -245,10 +245,10 @@ namespace Duplicati.UnitTest // Compare file metadata if (verifymetadata) { - // OSX seem to like to actually set the time to some value earlier than what you set by tens of milliseconds. + // macOS seem to like to actually set the time to some value different than what you set by hundreds 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? - int granularity = Platform.IsClientOSX ? 500 : 1; + int granularity = Platform.IsClientOSX ? 999 : 1; Assert.That( SystemIO.IO_OS.GetLastWriteTimeUtc(actualFile), Is.EqualTo(SystemIO.IO_OS.GetLastWriteTimeUtc(expectedFile)).Within(granularity).Milliseconds,