mirror of https://github.com/apache/lucene.git
LUCENE-9536: Address test failure.
This commit is contained in:
parent
7c1ff288b7
commit
bcd9711ab6
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue