mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-22 22:14:44 -04:00
Skip unknown/removed commands still queued in the database
This commit is contained in:
@@ -3,6 +3,7 @@ using FluentAssertions;
|
||||
using NUnit.Framework;
|
||||
using NzbDrone.Core.Books.Commands;
|
||||
using NzbDrone.Core.Datastore.Converters;
|
||||
using NzbDrone.Core.Messaging.Commands;
|
||||
using NzbDrone.Core.Test.Framework;
|
||||
|
||||
namespace NzbDrone.Core.Test.Datastore.Converters
|
||||
@@ -42,6 +43,14 @@ namespace NzbDrone.Core.Test.Datastore.Converters
|
||||
Subject.Parse(data).Should().BeOfType<RefreshAuthorCommand>();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void should_return_unknown_command_when_getting_json_from_db()
|
||||
{
|
||||
var data = "{\"name\": \"EnsureMediaCovers\"}";
|
||||
|
||||
Subject.Parse(data).Should().BeOfType<UnknownCommand>();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void should_return_null_for_null_value_when_getting_from_db()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user