Lucene.Net.TestFramework.Index.RandomCodec: Re-enabled the MockVariableIntBlockPostingsFormat, since it is now passing
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/1c137de6 Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/1c137de6 Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/1c137de6 Branch: refs/heads/api-work Commit: 1c137de63f55b09c697e7e3cf25cccc96323930a Parents: ef3b7da Author: Shad Storhaug <[email protected]> Authored: Sun Mar 19 22:30:17 2017 +0700 Committer: Shad Storhaug <[email protected]> Committed: Sun Mar 19 22:41:10 2017 +0700 ---------------------------------------------------------------------- src/Lucene.Net.TestFramework/Index/RandomCodec.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1c137de6/src/Lucene.Net.TestFramework/Index/RandomCodec.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.TestFramework/Index/RandomCodec.cs b/src/Lucene.Net.TestFramework/Index/RandomCodec.cs index 8f3d250..2bb83be 100644 --- a/src/Lucene.Net.TestFramework/Index/RandomCodec.cs +++ b/src/Lucene.Net.TestFramework/Index/RandomCodec.cs @@ -43,7 +43,7 @@ namespace Lucene.Net.Index using MemoryDocValuesFormat = Lucene.Net.Codecs.Memory.MemoryDocValuesFormat; using MemoryPostingsFormat = Lucene.Net.Codecs.Memory.MemoryPostingsFormat; using MockFixedIntBlockPostingsFormat = Lucene.Net.Codecs.MockIntBlock.MockFixedIntBlockPostingsFormat; - using MockVariableIntBlockPostingsFormat = Lucene.Net.Codecs.MockIntBlock.MockVariableIntBlockPostingsFormat; + using MockVariableInt32BlockPostingsFormat = Lucene.Net.Codecs.MockIntBlock.MockVariableInt32BlockPostingsFormat; using MockRandomPostingsFormat = Lucene.Net.Codecs.MockRandom.MockRandomPostingsFormat; using MockSepPostingsFormat = Lucene.Net.Codecs.MockSep.MockSepPostingsFormat; using NestedPulsingPostingsFormat = Lucene.Net.Codecs.NestedPulsing.NestedPulsingPostingsFormat; @@ -167,12 +167,7 @@ namespace Lucene.Net.Index new TestBloomFilteredLucene41Postings(), new MockSepPostingsFormat(), new MockFixedIntBlockPostingsFormat(TestUtil.NextInt(random, 1, 2000)), - - // LUCENENET TODO: This codec is causing random exceptions, but upon - // line-by-line review of the codec, it is exactly as it was in Lucene. - // So, there must be something wrong with variable int functionality - // somewhere else in the core. - //new MockVariableIntBlockPostingsFormat(TestUtil.NextInt(random, 1, 127)), + new MockVariableInt32BlockPostingsFormat(TestUtil.NextInt(random, 1, 127)), new MockRandomPostingsFormat(random), new NestedPulsingPostingsFormat(), new Lucene41WithOrds(),
