mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
random template is create only in ncrunch.
This commit is contained in:
parent
32e402b5a0
commit
460b90bc95
1 changed files with 8 additions and 1 deletions
|
@ -15,8 +15,15 @@ namespace NzbDrone.Core.Test.Framework
|
||||||
|
|
||||||
[SetUp]
|
[SetUp]
|
||||||
public void CoreTestSetup()
|
public void CoreTestSetup()
|
||||||
|
{
|
||||||
|
if(NCrunch.Framework.NCrunchEnvironment.NCrunchIsResident())
|
||||||
{
|
{
|
||||||
_dbTemplateName = Path.Combine(Path.GetTempPath(), Path.GetTempFileName()) + ".sdf";
|
_dbTemplateName = Path.Combine(Path.GetTempPath(), Path.GetTempFileName()) + ".sdf";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_dbTemplateName = "db_template.sdf";
|
||||||
|
}
|
||||||
CreateDataBaseTemplate();
|
CreateDataBaseTemplate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue