mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-22 22:15:17 -04:00
Fixed: Saving IndexerSettings into DB which confuses the datamapper.
Fixes #2945
This commit is contained in:
+12
-3
@@ -33,9 +33,18 @@ namespace NzbDrone.Core.Test.DecisionEngineTests.Search
|
||||
IndexerId = 1,
|
||||
Title = "Series.Title.S01.720p.BluRay.X264-RlsGrp",
|
||||
Seeders = 0,
|
||||
IndexerSettings = new TorrentRssIndexerSettings {MinimumSeeders = 5}
|
||||
//IndexerSettings = new TorrentRssIndexerSettings {MinimumSeeders = 5}
|
||||
}
|
||||
};
|
||||
|
||||
_indexerDefinition = new IndexerDefinition
|
||||
{
|
||||
Settings = new TorrentRssIndexerSettings { MinimumSeeders = 5 }
|
||||
};
|
||||
|
||||
Mocker.GetMock<IIndexerFactory>()
|
||||
.Setup(v => v.Get(1))
|
||||
.Returns(_indexerDefinition);
|
||||
}
|
||||
|
||||
private void GivenReleaseSeeders(int? seeders)
|
||||
@@ -56,7 +65,7 @@ namespace NzbDrone.Core.Test.DecisionEngineTests.Search
|
||||
}
|
||||
|
||||
// These tests are not needed anymore, since indexer settings are saved on the release itself!
|
||||
/*
|
||||
|
||||
[Test]
|
||||
public void should_return_true_if_indexer_not_specified()
|
||||
{
|
||||
@@ -73,7 +82,7 @@ namespace NzbDrone.Core.Test.DecisionEngineTests.Search
|
||||
.Callback<int>(i => { throw new ModelNotFoundException(typeof(IndexerDefinition), i); });
|
||||
|
||||
Subject.IsSatisfiedBy(_remoteMovie, null).Accepted.Should().BeTrue();
|
||||
}*/
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void should_return_true_if_seeds_unknown()
|
||||
|
||||
Reference in New Issue
Block a user