mirror of https://github.com/apache/lucene.git
don't add missing docs for the comparison unless the codec supports it (or the test will get complicated)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1520776 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
05b7a45c4b
commit
815ee4e2e6
|
@ -121,7 +121,7 @@ public class TestMultiDocValues extends LuceneTestCase {
|
|||
int numDocs = atLeast(500);
|
||||
for (int i = 0; i < numDocs; i++) {
|
||||
ref.copyChars(_TestUtil.randomUnicodeString(random()));
|
||||
if (random().nextInt(7) == 0) {
|
||||
if (defaultCodecSupportsDocsWithField() && random().nextInt(7) == 0) {
|
||||
iw.addDocument(new Document());
|
||||
}
|
||||
iw.addDocument(doc);
|
||||
|
|
Loading…
Reference in New Issue