From 1e2ad85718ebe3e06d6d2bc76db0f0f35d864a25 Mon Sep 17 00:00:00 2001 From: Bjarke Berg Date: Wed, 25 Nov 2020 07:31:39 +0100 Subject: [PATCH 1/2] Fix test for linux: config folder is lowercase Signed-off-by: Bjarke Berg --- .../Umbraco.Infrastructure/Logging/LogviewerTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Logging/LogviewerTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Logging/LogviewerTests.cs index 6a0fde5116..183e87e5ca 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Logging/LogviewerTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Logging/LogviewerTests.cs @@ -47,7 +47,7 @@ namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Logging _newLogfilePath = Path.Combine(_newLogfileDirPath, _logfileName); var exampleSearchfilePath = Path.Combine(testRoot, "TestHelpers","Assets", _searchfileName); - _newSearchfileDirPath = Path.Combine(hostingEnv.ApplicationPhysicalPath, @"Config"); + _newSearchfileDirPath = Path.Combine(hostingEnv.ApplicationPhysicalPath, @"config"); _newSearchfilePath = Path.Combine(_newSearchfileDirPath, _searchfileName); //Create/ensure Directory exists From a117d6be925a0b090d40ca5ce1fe4223a946270d Mon Sep 17 00:00:00 2001 From: Bjarke Berg Date: Wed, 25 Nov 2020 07:40:56 +0100 Subject: [PATCH 2/2] Fix test for linux: use temp folder inside content root Signed-off-by: Bjarke Berg --- .../HostedServices/TempFileCleanupTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/TempFileCleanupTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/TempFileCleanupTests.cs index 2fcc618397..98666ece2f 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/TempFileCleanupTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/TempFileCleanupTests.cs @@ -15,7 +15,7 @@ namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.HostedServices public class TempFileCleanupTests { private Mock _mockIOHelper; - private string _testPath = Path.GetTempPath(); + private string _testPath = Path.Combine(TestContext.CurrentContext.TestDirectory.Split("bin")[0], "App_Data", "TEMP"); [Test] public async Task Does_Not_Execute_When_Not_Main_Dom()