mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
Episode auto-ignore is now done in realtime rather than using a job.
This commit is contained in:
parent
24d51093d6
commit
4da2e1cb72
13 changed files with 171 additions and 191 deletions
|
@ -37,9 +37,6 @@ namespace NzbDrone.Core.Test.JobTests
|
|||
.Setup(p => p.Scan(series))
|
||||
.Returns(new List<EpisodeFile>());
|
||||
|
||||
Mocker.GetMock<AutoIgnoreJob>()
|
||||
.Setup(s => s.Start(It.IsAny<ProgressNotification>(), 0, 0));
|
||||
|
||||
//Act
|
||||
Mocker.Resolve<DiskScanJob>().Start(new ProgressNotification("Test"), series.SeriesId, 0);
|
||||
|
||||
|
@ -71,9 +68,6 @@ namespace NzbDrone.Core.Test.JobTests
|
|||
.Setup(s => s.Scan(series[1]))
|
||||
.Returns(new List<EpisodeFile>());
|
||||
|
||||
Mocker.GetMock<AutoIgnoreJob>()
|
||||
.Setup(s => s.Start(It.IsAny<ProgressNotification>(), 0, 0));
|
||||
|
||||
Mocker.Resolve<DiskScanJob>().Start(new ProgressNotification("Test"), 0, 0);
|
||||
|
||||
|
||||
|
@ -102,9 +96,6 @@ namespace NzbDrone.Core.Test.JobTests
|
|||
.Setup(s => s.Scan(series[1]))
|
||||
.Throws(new InvalidOperationException("Bad Job"));
|
||||
|
||||
Mocker.GetMock<AutoIgnoreJob>()
|
||||
.Setup(s => s.Start(It.IsAny<ProgressNotification>(), 0, 0));
|
||||
|
||||
Mocker.Resolve<DiskScanJob>().Start(new ProgressNotification("Test"), 0, 0);
|
||||
|
||||
|
||||
|
@ -134,8 +125,6 @@ namespace NzbDrone.Core.Test.JobTests
|
|||
.Setup(s => s.Scan(series[1]))
|
||||
.Returns(new List<EpisodeFile>());
|
||||
|
||||
Mocker.GetMock<AutoIgnoreJob>()
|
||||
.Setup(s => s.Start(It.IsAny<ProgressNotification>(), 0, 0));
|
||||
|
||||
Mocker.Resolve<DiskScanJob>().Start(new ProgressNotification("Test"), 0, 0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue