mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-14 11:23:42 +02:00
random template is create only in ncrunch.
This commit is contained in:
parent
32e402b5a0
commit
460b90bc95
@ -16,7 +16,14 @@ public class CoreTest : TestBase
|
||||
[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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user