mirror of https://github.com/apache/lucene.git
SOLR-9873: tests - fix SolrTestCaseJ4.compareSolrDocument num fields comparison
This commit is contained in:
parent
693a720996
commit
9fafd78ddf
|
@ -1948,7 +1948,7 @@ public abstract class SolrTestCaseJ4 extends LuceneTestCase {
|
|||
SolrDocument solrDocument1 = (SolrDocument) expected;
|
||||
SolrDocument solrDocument2 = (SolrDocument) actual;
|
||||
|
||||
if(solrDocument1.getFieldNames().size() != solrDocument1.getFieldNames().size()) {
|
||||
if(solrDocument1.getFieldNames().size() != solrDocument2.getFieldNames().size()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue