fix false test failure (force docid-preserving merging)

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1100408 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2011-05-06 22:25:31 +00:00
parent 77691f17d0
commit 3a0d3e01bd
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ public class TestTimeLimitingCollector extends LuceneTestCase {
"blueberry pizza",
};
directory = newDirectory();
RandomIndexWriter iw = new RandomIndexWriter(random, directory);
RandomIndexWriter iw = new RandomIndexWriter(random, directory, newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random)).setMergePolicy(newLogMergePolicy()));
for (int i=0; i<N_DOCS; i++) {
add(docText[i%docText.length], iw);