mirror of https://github.com/apache/lucene.git
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:
parent
d622e54172
commit
43a9b349de
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue