diff --git a/Snowflake.Data.Tests/UnitTests/Configuration/EasyLoggingConfigFinderTest.cs b/Snowflake.Data.Tests/UnitTests/Configuration/EasyLoggingConfigFinderTest.cs index f99318750..f46108545 100644 --- a/Snowflake.Data.Tests/UnitTests/Configuration/EasyLoggingConfigFinderTest.cs +++ b/Snowflake.Data.Tests/UnitTests/Configuration/EasyLoggingConfigFinderTest.cs @@ -120,7 +120,6 @@ public void TestThatTakesFilePathFromHomeDirectoryWhenNoOtherWaysPossible() } [Test] - [Ignore("TODO: modify the test and remove Ignore")] public void TestThatConfigFileIsNotUsedIfOthersCanModifyTheConfigFile() { if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) @@ -130,8 +129,8 @@ public void TestThatConfigFileIsNotUsedIfOthersCanModifyTheConfigFile() // arrange var configFilePath = CreateConfigTempFile(Config(EasyLoggingLogLevel.Warn.ToString(), InputConfigFilePath)); - var fileInfo = new Mono.Unix.UnixFileInfo(InputConfigFilePath); - fileInfo.Create(Mono.Unix.FileAccessPermissions.GroupWrite | Mono.Unix.FileAccessPermissions.OtherWrite); + var fileInfo = new Mono.Unix.UnixFileInfo(configFilePath); + fileInfo.Create(Mono.Unix.FileAccessPermissions.AllPermissions); // act var thrown = Assert.Throws(() => t_finder.FindConfigFilePath(configFilePath));