1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-25 17:27:18 +00:00

random template is create only in ncrunch.

This commit is contained in:
kay.one 2013-01-19 17:41:12 -08:00
parent 32e402b5a0
commit 460b90bc95

View file

@ -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();
} }