From 460b90bc957c7042efbdc6b56438f3d466de8a21 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sat, 19 Jan 2013 17:41:12 -0800 Subject: [PATCH] random template is create only in ncrunch. --- NzbDrone.Core.Test/Framework/CoreTest.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/NzbDrone.Core.Test/Framework/CoreTest.cs b/NzbDrone.Core.Test/Framework/CoreTest.cs index b8742e9bf..9093e2fe9 100644 --- a/NzbDrone.Core.Test/Framework/CoreTest.cs +++ b/NzbDrone.Core.Test/Framework/CoreTest.cs @@ -16,7 +16,14 @@ namespace NzbDrone.Core.Test.Framework [SetUp] public void CoreTestSetup() { - _dbTemplateName = Path.Combine(Path.GetTempPath(), Path.GetTempFileName()) + ".sdf"; + if(NCrunch.Framework.NCrunchEnvironment.NCrunchIsResident()) + { + _dbTemplateName = Path.Combine(Path.GetTempPath(), Path.GetTempFileName()) + ".sdf"; + } + else + { + _dbTemplateName = "db_template.sdf"; + } CreateDataBaseTemplate(); }