mirror of https://github.com/Sonarr/Sonarr
fixed broken tests in torrent client.
This commit is contained in:
parent
08d92c5511
commit
54d296c2a8
|
@ -186,7 +186,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.DelugeTests
|
||||||
{
|
{
|
||||||
PrepareClientToReturnFailedItem();
|
PrepareClientToReturnFailedItem();
|
||||||
var item = Subject.GetItems().Single();
|
var item = Subject.GetItems().Single();
|
||||||
VerifyFailed(item);
|
VerifyWarning(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
|
|
@ -108,6 +108,13 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests
|
||||||
downloadClientItem.Status.Should().Be(DownloadItemStatus.Completed);
|
downloadClientItem.Status.Should().Be(DownloadItemStatus.Completed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void VerifyWarning(DownloadClientItem downloadClientItem)
|
||||||
|
{
|
||||||
|
VerifyIdentifiable(downloadClientItem);
|
||||||
|
|
||||||
|
downloadClientItem.Status.Should().Be(DownloadItemStatus.Warning);
|
||||||
|
}
|
||||||
|
|
||||||
protected void VerifyFailed(DownloadClientItem downloadClientItem)
|
protected void VerifyFailed(DownloadClientItem downloadClientItem)
|
||||||
{
|
{
|
||||||
VerifyIdentifiable(downloadClientItem);
|
VerifyIdentifiable(downloadClientItem);
|
||||||
|
|
|
@ -198,7 +198,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.TransmissionTests
|
||||||
{
|
{
|
||||||
PrepareClientToReturnFailedItem();
|
PrepareClientToReturnFailedItem();
|
||||||
var item = Subject.GetItems().Single();
|
var item = Subject.GetItems().Single();
|
||||||
VerifyFailed(item);
|
VerifyWarning(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
|
|
@ -192,7 +192,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.UTorrentTests
|
||||||
{
|
{
|
||||||
PrepareClientToReturnFailedItem();
|
PrepareClientToReturnFailedItem();
|
||||||
var item = Subject.GetItems().Single();
|
var item = Subject.GetItems().Single();
|
||||||
VerifyFailed(item);
|
VerifyWarning(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
|
Loading…
Reference in New Issue