1
0
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:
Leonardo Galli
2018-08-06 19:35:26 +02:00
parent c4ca2f12bb
commit b553d8aef6
9 changed files with 94 additions and 33 deletions
@@ -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()