mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Fixed issue where AppUpdateJob would throw when there are no updates available.
This commit is contained in:
parent
488be41fb1
commit
24d51093d6
2 changed files with 21 additions and 4 deletions
|
@ -11,6 +11,7 @@ using NzbDrone.Core.Model;
|
|||
using NzbDrone.Core.Providers;
|
||||
using NzbDrone.Core.Providers.Core;
|
||||
using NzbDrone.Core.Test.Framework;
|
||||
using NzbDrone.Test.Common;
|
||||
|
||||
namespace NzbDrone.Core.Test.JobTests
|
||||
{
|
||||
|
@ -61,6 +62,7 @@ namespace NzbDrone.Core.Test.JobTests
|
|||
Mocker.GetMock<DiskProvider>().Verify(c => c.DeleteFolder(SANDBOX_FOLDER, true), Times.Never());
|
||||
}
|
||||
|
||||
|
||||
[Test]
|
||||
public void Should_download_update_package()
|
||||
{
|
||||
|
@ -120,6 +122,16 @@ namespace NzbDrone.Core.Test.JobTests
|
|||
));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void when_no_updates_are_available_should_return_without_error_or_warnings()
|
||||
{
|
||||
Mocker.GetMock<UpdateProvider>().Setup(c => c.GetAvilableUpdate()).Returns((UpdatePackage)null);
|
||||
|
||||
StartUpdate();
|
||||
|
||||
ExceptionVerification.AssertNoUnexcpectedLogs();
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Category(INTEGRATION_TEST)]
|
||||
public void Should_download_and_extract_to_temp_folder()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue