1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-11 20:12:41 +02:00

Fix tests in IndexerServiceFixture

(cherry picked from commit 90a9ecbaac1b406ffeb6b6876d619191a317a35f)
This commit is contained in:
Bogdan 2023-05-21 11:24:12 +03:00
parent df70d85d0a
commit db154ae9a4

View File

@ -7,6 +7,7 @@
using NzbDrone.Core.Indexers.Newznab;
using NzbDrone.Core.Lifecycle;
using NzbDrone.Core.Test.Framework;
using NzbDrone.Test.Common;
namespace NzbDrone.Core.Test.IndexerTests
{
@ -33,13 +34,15 @@ public void should_remove_missing_indexers_on_startup()
Mocker.SetConstant<IIndexerRepository>(repo);
var existingIndexers = Builder<IndexerDefinition>.CreateNew().BuildNew();
existingIndexers.ConfigContract = typeof(NewznabSettings).Name;
existingIndexers.ConfigContract = nameof(NewznabSettings);
repo.Insert(existingIndexers);
Subject.Handle(new ApplicationStartedEvent());
AllStoredModels.Should().NotContain(c => c.Id == existingIndexers.Id);
ExceptionVerification.ExpectedWarns(1);
}
}
}