random template is create only in ncrunch.

pull/23/head
kay.one 12 years ago
parent 32e402b5a0
commit 460b90bc95

@ -16,7 +16,14 @@ namespace NzbDrone.Core.Test.Framework
[SetUp] [SetUp]
public void CoreTestSetup() 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(); CreateDataBaseTemplate();
} }

Loading…
Cancel
Save