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:
Robert Muir 2013-09-07 14:19:19 +00:00
parent 05b7a45c4b
commit 815ee4e2e6
1 changed files with 1 additions and 1 deletions

View File

@ -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);