mirror of
https://github.com/lidarr/Lidarr
synced 2025-03-14 15:58:48 +00:00
Fixed NZBGet tests
This commit is contained in:
parent
9f4a74e371
commit
28b7323d4d
1 changed files with 5 additions and 5 deletions
|
@ -9,7 +9,7 @@ using NzbDrone.Core.Download.Clients.Nzbget;
|
|||
using NzbDrone.Test.Common;
|
||||
using NzbDrone.Core.RemotePathMappings;
|
||||
using NzbDrone.Common.Disk;
|
||||
using NzbDrone.Core.Download.Clients;
|
||||
using NzbDrone.Core.Exceptions;
|
||||
|
||||
namespace NzbDrone.Core.Test.Download.DownloadClientTests.NzbgetTests
|
||||
{
|
||||
|
@ -277,16 +277,16 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.NzbgetTests
|
|||
}
|
||||
|
||||
[Test]
|
||||
public void should_report_deletestatus_copy_as_failed()
|
||||
public void should_skip_deletestatus_copy()
|
||||
{
|
||||
_completed.DeleteStatus = "COPY";
|
||||
|
||||
GivenQueue(null);
|
||||
GivenHistory(_completed);
|
||||
|
||||
var result = Subject.GetItems().Single();
|
||||
var result = Subject.GetItems().SingleOrDefault();
|
||||
|
||||
result.Status.Should().Be(DownloadItemStatus.Failed);
|
||||
result.Should().BeNull();
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
@ -350,7 +350,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.NzbgetTests
|
|||
|
||||
var remoteAlbum = CreateRemoteAlbum();
|
||||
|
||||
Assert.Throws<DownloadClientException>(() => Subject.Download(remoteAlbum));
|
||||
Assert.Throws<DownloadClientRejectedReleaseException>(() => Subject.Download(remoteAlbum));
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
Loading…
Add table
Reference in a new issue