New: Removing rtorrent downloads when seeding criteria have been met

(cherry picked from commit 411be4d0116f0739bb9c71235312d0c5a26dd3a2)
This commit is contained in:
leaty
2020-03-19 15:47:25 +01:00
committed by ta264
parent a5b1711827
commit da262f3d95
7 changed files with 204 additions and 24 deletions
@@ -1,9 +1,11 @@
using System;
using System.Collections.Generic;
using System.Linq;
using FluentAssertions;
using Moq;
using NUnit.Framework;
using NzbDrone.Core.Download;
using NzbDrone.Core.Download.Clients;
using NzbDrone.Core.Download.Clients.RTorrent;
using NzbDrone.Core.MediaFiles.TorrentInfo;
@@ -92,6 +94,14 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.RTorrentTests
{
_completed
});
Mocker.GetMock<IDownloadSeedConfigProvider>()
.Setup(x => x.GetSeedConfiguration(It.IsAny<string>()))
.Returns(new TorrentSeedConfiguration
{
Ratio = 1.0,
SeedTime = TimeSpan.MaxValue
});
}
[Test]