From 815ee4e2e6ad0114307e1da737411953037f14c5 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Sat, 7 Sep 2013 14:19:19 +0000 Subject: [PATCH] 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 --- .../src/test/org/apache/lucene/index/TestMultiDocValues.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/core/src/test/org/apache/lucene/index/TestMultiDocValues.java b/lucene/core/src/test/org/apache/lucene/index/TestMultiDocValues.java index 0e21308bda4..c36b049cffd 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestMultiDocValues.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestMultiDocValues.java @@ -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);