use less files in NIGHTLY

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1650808 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2015-01-10 20:31:19 +00:00
parent d97b1cef28
commit 25e24d94d9
1 changed files with 4 additions and 0 deletions

View File

@ -803,6 +803,10 @@ public class TestDemoParallelLeafReader extends LuceneTestCase {
// We write tiny docs, so we need tiny floor to avoid O(N^2) merging:
tmp.setFloorSegmentMB(.01);
iwc.setMergePolicy(tmp);
if (TEST_NIGHTLY) {
// during nightly tests, we might use too many files if we arent careful
iwc.setUseCompoundFile(true);
}
return iwc;
}