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:
Robert Muir 2015-04-02 16:38:42 +00:00
parent 61166afce7
commit d1be8c3b2b
1 changed files with 3 additions and 1 deletions

View File

@ -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);