From b12b8724b9842381821332a36e84f1cda63f23d8 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Wed, 29 May 2013 22:10:26 -0700 Subject: [PATCH] fixed broken test log file is not kept open anymore --- NzbDrone.Test.Common/TestBase.cs | 3 ++- NzbDrone/NLog.config | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NzbDrone.Test.Common/TestBase.cs b/NzbDrone.Test.Common/TestBase.cs index da36b0584..0cbe7a98a 100644 --- a/NzbDrone.Test.Common/TestBase.cs +++ b/NzbDrone.Test.Common/TestBase.cs @@ -22,7 +22,6 @@ namespace NzbDrone.Test.Common { _subject = null; - Mocker.SetConstant(new CacheManger()); } protected TSubject Subject @@ -77,6 +76,7 @@ namespace NzbDrone.Test.Common { GetType().IsPublic.Should().BeTrue("All Test fixtures should be public to work in mono."); + Mocker.SetConstant(new CacheManger()); Mocker.SetConstant(LogManager.GetLogger("TestLogger")); @@ -86,6 +86,7 @@ namespace NzbDrone.Test.Common MockedRestProvider = new Mock(); + Directory.CreateDirectory(TempFolder); } diff --git a/NzbDrone/NLog.config b/NzbDrone/NLog.config index 532267a60..e0a2b46bf 100644 --- a/NzbDrone/NLog.config +++ b/NzbDrone/NLog.config @@ -18,7 +18,7 @@ ${exception:format=ToString} -