Apache Solr open-source search software
LUCENE-2144 Warning about descripancy during invalid use of the TermDocs API.
Karl-Johan Wettinf975b84b1691
diff --git a/contrib/instantiated/src/test/org/apache/lucene/store/instantiated/TestIndicesEquals.java b/contrib/instantiated/src/test/org/apache/lucene/store/instantiated/TestIndicesEquals.javaindex f1a46d1bcb4..c9d570bbf8b 100644--- a/contrib/instantiated/src/test/org/apache/lucene/store/instantiated/TestIndicesEquals.java+++ b/contrib/instantiated/src/test/org/apache/lucene/store/instantiated/TestIndicesEquals.java@@ -220,7 +220,18 @@ public class TestIndicesEquals extends TestCase {// test seek defaultaprioriTermDocs = aprioriReader.termDocs();testTermDocs = testReader.termDocs();- // todo consider seeking and skipping some too++ // this is invalid use of the API,+ // but if the response differs then it's an indication that something might have changed.+ // in 2.9 and 3.0 the two TermDocs-implementations returned different values at this point.+ assertEquals("Descripency during invalid use of the TermDocs API, see comments in test code for details.",+ aprioriTermDocs.next(), testTermDocs.next());++ // start using the API one is supposed to++ t = new Term("", "");+ aprioriTermDocs.seek(t);+ testTermDocs.seek(t);while (aprioriTermDocs.next()) {assertTrue(testTermDocs.next());