From 5e30c482cd1e24f40a0266fca18a54a3bf913fb8 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sun, 10 Jul 2011 22:15:37 -0700 Subject: [PATCH] Priority is now set using a timer --- NzbDrone.Core.Test/JobProviderTest.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/NzbDrone.Core.Test/JobProviderTest.cs b/NzbDrone.Core.Test/JobProviderTest.cs index 7cf9128c7..9570e7716 100644 --- a/NzbDrone.Core.Test/JobProviderTest.cs +++ b/NzbDrone.Core.Test/JobProviderTest.cs @@ -17,6 +17,12 @@ namespace NzbDrone.Core.Test // ReSharper disable InconsistentNaming public class JobProviderTest : TestBase { + [TestFixtureSetUp] + public void Setup() + { + JobProvider.Queue.Clear(); + } + [Test] public void Run_Jobs_Updates_Last_Execution() { @@ -62,7 +68,7 @@ namespace NzbDrone.Core.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 mocker = new AutoMoqer(); @@ -88,8 +94,8 @@ namespace NzbDrone.Core.Test { var fakeJob = new FakeJob(); var mocker = new AutoMoqer(); - - IList fakeJobs = new List {fakeJob}; + + IList fakeJobs = new List { fakeJob }; mocker.SetConstant(MockLib.GetEmptyDatabase()); mocker.SetConstant(fakeJobs);