mirror of https://github.com/apache/lucene.git
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
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1582477 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
580ef3bb4e
commit
e01f41cc16
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue