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:
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()
|
||||||
{
|
{
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue