From f2d209cfaf43e5457cd7d75d7d48385b9d69d1aa Mon Sep 17 00:00:00 2001 From: Thomas Suckow Date: Sun, 3 Jan 2021 22:26:35 -0800 Subject: [PATCH] Even more relaxed --- Duplicati/UnitTest/TestUtils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Duplicati/UnitTest/TestUtils.cs b/Duplicati/UnitTest/TestUtils.cs index b1828d5d9..af64aff14 100644 --- a/Duplicati/UnitTest/TestUtils.cs +++ b/Duplicati/UnitTest/TestUtils.cs @@ -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,