Fix test failure because of CFS files expected

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1377384 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2012-08-26 08:22:34 +00:00
parent 35285cf295
commit 50f38aa1ab
1 changed files with 4 additions and 1 deletions

View File

@ -561,7 +561,10 @@ public class TestBackwardsCompatibility extends LuceneTestCase {
Directory dir = newFSDirectory(outputDir);
LogMergePolicy mergePolicy = newLogMergePolicy(true, 10);
mergePolicy.setNoCFSRatio(1); // This test expects all of its segments to be in CFS
// This test expects all of its segments to be in CFS:
mergePolicy.setNoCFSRatio(1.0);
mergePolicy.setMaxCFSSegmentSizeMB(Double.POSITIVE_INFINITY);
IndexWriter writer = new IndexWriter(
dir,