mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-05 10:32:35 +01:00
fixed broken tests in torrent client.
This commit is contained in:
parent
08d92c5511
commit
54d296c2a8
@ -186,7 +186,7 @@ public void failed_item_should_have_required_properties()
|
||||
{
|
||||
PrepareClientToReturnFailedItem();
|
||||
var item = Subject.GetItems().Single();
|
||||
VerifyFailed(item);
|
||||
VerifyWarning(item);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
@ -108,6 +108,13 @@ protected void VerifyCompleted(DownloadClientItem downloadClientItem)
|
||||
downloadClientItem.Status.Should().Be(DownloadItemStatus.Completed);
|
||||
}
|
||||
|
||||
protected void VerifyWarning(DownloadClientItem downloadClientItem)
|
||||
{
|
||||
VerifyIdentifiable(downloadClientItem);
|
||||
|
||||
downloadClientItem.Status.Should().Be(DownloadItemStatus.Warning);
|
||||
}
|
||||
|
||||
protected void VerifyFailed(DownloadClientItem downloadClientItem)
|
||||
{
|
||||
VerifyIdentifiable(downloadClientItem);
|
||||
|
@ -198,7 +198,7 @@ public void failed_item_should_have_required_properties()
|
||||
{
|
||||
PrepareClientToReturnFailedItem();
|
||||
var item = Subject.GetItems().Single();
|
||||
VerifyFailed(item);
|
||||
VerifyWarning(item);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
@ -192,7 +192,7 @@ public void failed_item_should_have_required_properties()
|
||||
{
|
||||
PrepareClientToReturnFailedItem();
|
||||
var item = Subject.GetItems().Single();
|
||||
VerifyFailed(item);
|
||||
VerifyWarning(item);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
Loading…
Reference in New Issue
Block a user