mirror of https://github.com/apache/lucene.git
fix excessive file handle usage in test
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1670934 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
61166afce7
commit
d1be8c3b2b
|
@ -1130,7 +1130,9 @@ public class TestIndexWriterDelete extends LuceneTestCase {
|
|||
.setRAMBufferSizeMB(0.5)
|
||||
.setMaxBufferedDocs(-1)
|
||||
.setMergePolicy(NoMergePolicy.INSTANCE)
|
||||
.setReaderPooling(false)) {
|
||||
.setReaderPooling(false)
|
||||
// always use CFS so we don't use tons of file handles in the test
|
||||
.setUseCompoundFile(true)) {
|
||||
@Override
|
||||
public void doAfterFlush() {
|
||||
assertTrue("only " + docsInSegment.get() + " in segment", closing.get() || docsInSegment.get() >= 7);
|
||||
|
|
Loading…
Reference in New Issue