TestLRUQueryCache#testBulkScorerLocking needs large IW buffers.

This commit is contained in:
Adrien Grand 2018-05-28 15:22:21 +02:00
parent 0941cae532
commit b1613e4da6
1 changed files with 4 additions and 1 deletions

View File

@ -1605,7 +1605,10 @@ public class TestLRUQueryCache extends LuceneTestCase {
public void testBulkScorerLocking() throws Exception {
Directory dir = newDirectory();
IndexWriterConfig iwc = newIndexWriterConfig().setMergePolicy(NoMergePolicy.INSTANCE);
IndexWriterConfig iwc = newIndexWriterConfig()
.setMergePolicy(NoMergePolicy.INSTANCE)
// the test framework sometimes sets crazy low values, prevent this since we are indexing many docs
.setMaxBufferedDocs(-1);
IndexWriter w = new IndexWriter(dir, iwc);
final int numDocs = atLeast(10);