mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-24 13:57:11 -04:00
Fix tests in IndexerServiceFixture
This commit is contained in:
parent
337828ff9c
commit
0fe54ed36a
1 changed files with 4 additions and 1 deletions
|
@ -6,6 +6,7 @@ using NzbDrone.Core.Indexers;
|
|||
using NzbDrone.Core.Indexers.Newznab;
|
||||
using NzbDrone.Core.Lifecycle;
|
||||
using NzbDrone.Core.Test.Framework;
|
||||
using NzbDrone.Test.Common;
|
||||
|
||||
namespace NzbDrone.Core.Test.IndexerTests
|
||||
{
|
||||
|
@ -31,13 +32,15 @@ namespace NzbDrone.Core.Test.IndexerTests
|
|||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue