Apache Solr open-source search software
fix test to actually compare index1 vs index2, not index1 against itself
Robert Muir00fa30294254
diff --git a/lucene/core/src/test/org/apache/lucene/index/TestDirectoryReader.java b/lucene/core/src/test/org/apache/lucene/index/TestDirectoryReader.javaindex 63af9bf1432..26b7c26f3cf 100644--- a/lucene/core/src/test/org/apache/lucene/index/TestDirectoryReader.java+++ b/lucene/core/src/test/org/apache/lucene/index/TestDirectoryReader.java@@ -613,7 +613,7 @@ public void testFilesOpenClose() throws IOException {// check dictionary and posting listsFieldsEnum fenum1 = MultiFields.getFields(index1).iterator();- FieldsEnum fenum2 = MultiFields.getFields(index1).iterator();+ FieldsEnum fenum2 = MultiFields.getFields(index2).iterator();String field1 = null;Bits liveDocs = MultiFields.getLiveDocs(index1);while((field1=fenum1.next()) != null) {