mirror of https://github.com/apache/lucene.git
SOLR-10033: TestDistributedSearch: ignore response header warnings section when comparing distributed and control responses
This commit is contained in:
parent
0e2ec280be
commit
edd9c11329
|
@ -929,6 +929,14 @@ public abstract class BaseDistributedSearchTestCase extends SolrTestCaseJ4 {
|
|||
}
|
||||
}
|
||||
}
|
||||
{ // we don't care if one has a warnings section in the header and the other doesn't - control vs distrib
|
||||
if (a.getHeader() != null) {
|
||||
a.getHeader().remove("warnings");
|
||||
}
|
||||
if (b.getHeader() != null) {
|
||||
b.getHeader().remove("warnings");
|
||||
}
|
||||
}
|
||||
compareSolrResponses(a, b);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue