LUCENE-9536: Address test failure.

This commit is contained in:
Adrien Grand 2020-11-05 11:58:15 +01:00
parent 7c1ff288b7
commit bcd9711ab6
1 changed files with 4 additions and 3 deletions

View File

@ -101,9 +101,10 @@ public class TestOrdinalMap extends LuceneTestCase {
*/ */
public void testOneSegmentWithAllValues() throws IOException { public void testOneSegmentWithAllValues() throws IOException {
Directory dir = newDirectory(); Directory dir = newDirectory();
IndexWriterConfig cfg = new IndexWriterConfig(new MockAnalyzer(random())).setCodec( IndexWriterConfig cfg = new IndexWriterConfig(new MockAnalyzer(random()))
TestUtil.alwaysDocValuesFormat(TestUtil.getDefaultDocValuesFormat())); .setCodec(TestUtil.alwaysDocValuesFormat(TestUtil.getDefaultDocValuesFormat()))
RandomIndexWriter iw = new RandomIndexWriter(random(), dir, cfg); .setMergePolicy(NoMergePolicy.INSTANCE);
IndexWriter iw = new IndexWriter(dir, cfg);
int numTerms = 1000; int numTerms = 1000;
for (int i = 0; i < numTerms; ++i) { for (int i = 0; i < numTerms; ++i) {