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 {
Directory dir = newDirectory();
IndexWriterConfig cfg = new IndexWriterConfig(new MockAnalyzer(random())).setCodec(
TestUtil.alwaysDocValuesFormat(TestUtil.getDefaultDocValuesFormat()));
RandomIndexWriter iw = new RandomIndexWriter(random(), dir, cfg);
IndexWriterConfig cfg = new IndexWriterConfig(new MockAnalyzer(random()))
.setCodec(TestUtil.alwaysDocValuesFormat(TestUtil.getDefaultDocValuesFormat()))
.setMergePolicy(NoMergePolicy.INSTANCE);
IndexWriter iw = new IndexWriter(dir, cfg);
int numTerms = 1000;
for (int i = 0; i < numTerms; ++i) {