Fixed NZBGet tests

pull/6/head
Mark McDowall 5 years ago committed by Qstick
parent 9f4a74e371
commit 28b7323d4d

@ -9,7 +9,7 @@ using NzbDrone.Core.Download.Clients.Nzbget;
using NzbDrone.Test.Common; using NzbDrone.Test.Common;
using NzbDrone.Core.RemotePathMappings; using NzbDrone.Core.RemotePathMappings;
using NzbDrone.Common.Disk; using NzbDrone.Common.Disk;
using NzbDrone.Core.Download.Clients; using NzbDrone.Core.Exceptions;
namespace NzbDrone.Core.Test.Download.DownloadClientTests.NzbgetTests namespace NzbDrone.Core.Test.Download.DownloadClientTests.NzbgetTests
{ {
@ -277,16 +277,16 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.NzbgetTests
} }
[Test] [Test]
public void should_report_deletestatus_copy_as_failed() public void should_skip_deletestatus_copy()
{ {
_completed.DeleteStatus = "COPY"; _completed.DeleteStatus = "COPY";
GivenQueue(null); GivenQueue(null);
GivenHistory(_completed); GivenHistory(_completed);
var result = Subject.GetItems().Single(); var result = Subject.GetItems().SingleOrDefault();
result.Status.Should().Be(DownloadItemStatus.Failed); result.Should().BeNull();
} }
[Test] [Test]
@ -350,7 +350,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.NzbgetTests
var remoteAlbum = CreateRemoteAlbum(); var remoteAlbum = CreateRemoteAlbum();
Assert.Throws<DownloadClientException>(() => Subject.Download(remoteAlbum)); Assert.Throws<DownloadClientRejectedReleaseException>(() => Subject.Download(remoteAlbum));
} }
[Test] [Test]

Loading…
Cancel
Save