1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-26 09:47:39 +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()
{ {
@ -62,7 +68,7 @@ namespace NzbDrone.Core.Test
} }
[Test] [Test]
public void scheduler_skips_jobs_that_arent_mature_yet() public void scheduler_skips_jobs_that_arent_mature_yet()
{ {
var fakeJob = new FakeJob(); var fakeJob = new FakeJob();
var mocker = new AutoMoqer(); var mocker = new AutoMoqer();
@ -88,8 +94,8 @@ 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);