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:
parent
f1ec592834
commit
5e30c482cd
1 changed files with 9 additions and 3 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue