SOLR-9873: tests - fix SolrTestCaseJ4.compareSolrDocument num fields comparison

This commit is contained in:
yonik 2016-12-16 18:41:02 -05:00
parent 693a720996
commit 9fafd78ddf
1 changed files with 1 additions and 1 deletions

View File

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