mirror of https://github.com/apache/lucene.git
Do not use mock merge policy for TestFuzzyQuery#testFuzziness (#13070)
This commit is contained in:
parent
ce0fa2a6a6
commit
5e3e7465c3
|
@ -67,7 +67,12 @@ public class TestFuzzyQuery extends LuceneTestCase {
|
|||
|
||||
public void testFuzziness() throws Exception {
|
||||
Directory directory = newDirectory();
|
||||
RandomIndexWriter writer = new RandomIndexWriter(random(), directory);
|
||||
RandomIndexWriter writer =
|
||||
new RandomIndexWriter(
|
||||
random(),
|
||||
directory,
|
||||
newIndexWriterConfig(new MockAnalyzer(random()))
|
||||
.setMergePolicy(newMergePolicy(random(), false)));
|
||||
addDoc("aaaaa", writer);
|
||||
addDoc("aaaab", writer);
|
||||
addDoc("aaabb", writer);
|
||||
|
|
Loading…
Reference in New Issue