SOLR-10033: TestDistributedSearch: ignore response header warnings section when comparing distributed and control responses

This commit is contained in:
Steve Rowe 2017-08-02 09:07:19 -04:00
parent 0e2ec280be
commit edd9c11329
1 changed files with 8 additions and 0 deletions

View File

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