(cherry picked from commit f3308827d0ede7895b0b8b3b251a17cda3a54120)pull/3106/head
parent
11ba745439
commit
f7839adc38
@ -0,0 +1,26 @@
|
||||
using System.IO;
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace NzbDrone.Core.Test
|
||||
{
|
||||
[SetUpFixture]
|
||||
public class RemoveCachedDatabase
|
||||
{
|
||||
[OneTimeSetUp]
|
||||
[OneTimeTearDown]
|
||||
public void ClearCachedDatabase()
|
||||
{
|
||||
var mainCache = Path.Combine(TestContext.CurrentContext.TestDirectory, $"cached_Main.db");
|
||||
if (File.Exists(mainCache))
|
||||
{
|
||||
File.Delete(mainCache);
|
||||
}
|
||||
|
||||
var logCache = Path.Combine(TestContext.CurrentContext.TestDirectory, $"cached_Log.db");
|
||||
if (File.Exists(logCache))
|
||||
{
|
||||
File.Delete(logCache);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue