Do not use mock merge policy for TestGrouping (#13034)

This commit is contained in:
Benjamin Trent 2024-01-26 07:16:27 -05:00 committed by GitHub
parent a9480316e2
commit fb5037f841
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 2 deletions

View File

@ -611,7 +611,11 @@ public class TestGrouping extends LuceneTestCase {
} }
RandomIndexWriter w = RandomIndexWriter w =
new RandomIndexWriter(random(), dir, newIndexWriterConfig(new MockAnalyzer(random()))); new RandomIndexWriter(
random(),
dir,
newIndexWriterConfig(new MockAnalyzer(random()))
.setMergePolicy(newMergePolicy(random(), false)));
final List<List<Document>> updateDocs = new ArrayList<>(); final List<List<Document>> updateDocs = new ArrayList<>();
@ -731,7 +735,11 @@ public class TestGrouping extends LuceneTestCase {
Directory dir = newDirectory(); Directory dir = newDirectory();
RandomIndexWriter w = RandomIndexWriter w =
new RandomIndexWriter(random(), dir, newIndexWriterConfig(new MockAnalyzer(random()))); new RandomIndexWriter(
random(),
dir,
newIndexWriterConfig(new MockAnalyzer(random()))
.setMergePolicy(newMergePolicy(random(), false)));
Document doc = new Document(); Document doc = new Document();
Document docNoGroup = new Document(); Document docNoGroup = new Document();
Field idvGroupField = new SortedDocValuesField("group", new BytesRef()); Field idvGroupField = new SortedDocValuesField("group", new BytesRef());