mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-29 21:39:34 +02:00
Migration is no longer executed per test, its ran once and the db is cloned after that, (faster tests, cleaner logs ;)
This commit is contained in:
@@ -21,8 +21,7 @@ namespace NzbDrone.Core.Test
|
||||
{
|
||||
try
|
||||
{
|
||||
LogManager.Configuration =
|
||||
new XmlLoggingConfiguration(Path.Combine(CentralDispatch.AppPath, "log.config"), false);
|
||||
LogManager.Configuration = new XmlLoggingConfiguration(Path.Combine(CentralDispatch.AppPath, "log.config"), false);
|
||||
LogManager.ThrowExceptions = true;
|
||||
|
||||
var exceptionVerification = new ExceptionVerification();
|
||||
@@ -35,7 +34,6 @@ namespace NzbDrone.Core.Test
|
||||
Console.WriteLine("Unable to configure logging. " + e);
|
||||
}
|
||||
|
||||
|
||||
var filesToDelete = Directory.GetFiles(Directory.GetCurrentDirectory(), "*.sdf", SearchOption.AllDirectories);
|
||||
foreach (var file in filesToDelete)
|
||||
{
|
||||
@@ -45,6 +43,8 @@ namespace NzbDrone.Core.Test
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
|
||||
MockLib.CreateDataBaseTemplate();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user