mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-23 22:25:09 -04:00
Fixed: Failed download handling should now only report a download wasn't grabbed by sonarr if the download actually failed.
This commit is contained in:
@@ -68,6 +68,28 @@ namespace NzbDrone.Core.Test.Download
|
||||
AssertDownloadNotFailed();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void should_warn_if_matching_history_is_not_found()
|
||||
{
|
||||
_trackedDownload.DownloadItem.Status = DownloadItemStatus.Failed;
|
||||
GivenNoGrabbedHistory();
|
||||
|
||||
Subject.Process(_trackedDownload);
|
||||
|
||||
_trackedDownload.StatusMessages.Should().NotBeEmpty();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void should_not_warn_if_matching_history_is_not_found_and_not_failed()
|
||||
{
|
||||
_trackedDownload.DownloadItem.Status = DownloadItemStatus.Failed;
|
||||
GivenNoGrabbedHistory();
|
||||
|
||||
Subject.Process(_trackedDownload);
|
||||
|
||||
_trackedDownload.StatusMessages.Should().NotBeEmpty();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void should_mark_failed_if_encrypted()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user