1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-27 02:07:41 +00:00

Priority is now set using a timer

This commit is contained in:
kay.one 2011-07-10 22:15:37 -07:00
parent f1ec592834
commit 5e30c482cd

View file

@ -17,6 +17,12 @@ namespace NzbDrone.Core.Test
// ReSharper disable InconsistentNaming // ReSharper disable InconsistentNaming
public class JobProviderTest : TestBase public class JobProviderTest : TestBase
{ {
[TestFixtureSetUp]
public void Setup()
{
JobProvider.Queue.Clear();
}
[Test] [Test]
public void Run_Jobs_Updates_Last_Execution() public void Run_Jobs_Updates_Last_Execution()
{ {
@ -89,7 +95,7 @@ namespace NzbDrone.Core.Test
var fakeJob = new FakeJob(); var fakeJob = new FakeJob();
var mocker = new AutoMoqer(); var mocker = new AutoMoqer();
IList<IJob> fakeJobs = new List<IJob> {fakeJob}; IList<IJob> fakeJobs = new List<IJob> { fakeJob };
mocker.SetConstant(MockLib.GetEmptyDatabase()); mocker.SetConstant(MockLib.GetEmptyDatabase());
mocker.SetConstant(fakeJobs); mocker.SetConstant(fakeJobs);