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 {
|
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) {
|
||||||
|
|
Loading…
Reference in New Issue