Apache Lucene open-source search software
remove bogus setting in test (see explanation on the mail list: this test cares about how many tokens it indexes because it expects there to be exactly 1 term
Robert Muire01f41cc16cc
diff --git a/lucene/core/src/test/org/apache/lucene/index/TestNorms.java b/lucene/core/src/test/org/apache/lucene/index/TestNorms.javaindex 29fba3b5871..db27d1bfa83 100644--- a/lucene/core/src/test/org/apache/lucene/index/TestNorms.java+++ b/lucene/core/src/test/org/apache/lucene/index/TestNorms.java@@ -76,7 +76,6 @@ public class TestNorms extends LuceneTestCase {public void testCustomEncoder() throws Exception {Directory dir = newDirectory();MockAnalyzer analyzer = new MockAnalyzer(random());- analyzer.setMaxTokenLength(TestUtil.nextInt(random(), 1, IndexWriter.MAX_TERM_LENGTH));IndexWriterConfig config = newIndexWriterConfig(TEST_VERSION_CURRENT, analyzer);config.setSimilarity(new CustomNormEncodingSimilarity());