false test failure

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1098347 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2011-05-01 14:58:18 +00:00
parent d622e54172
commit 43a9b349de
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ public class TestValueSource extends LuceneTestCase {
public void testMultiValueSource() throws Exception {
Directory dir = newDirectory();
IndexWriter w = new IndexWriter(dir, new IndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random)).setMergePolicy(newLogMergePolicy()));
((LogMergePolicy) w.getConfig().getMergePolicy()).setMergeFactor(_TestUtil.nextInt(random, 2, 16));
((LogMergePolicy) w.getConfig().getMergePolicy()).setMergeFactor(10);
Document doc = new Document();
Field f = newField("field", "", Field.Store.NO, Field.Index.NOT_ANALYZED);
doc.add(f);
@ -44,7 +44,7 @@ public class TestValueSource extends LuceneTestCase {
IndexReader r = IndexReader.open(w, true);
w.close();
assertTrue(r.getSequentialSubReaders().length > 1);
assertTrue("reader=" + r, r.getSequentialSubReaders().length > 1);
ValueSource s1 = new IntFieldSource("field");
AtomicReaderContext[] leaves = ReaderUtil.leaves(r.getTopReaderContext());