[Tests] Remove unneeded test logging (#54634)
This logging was added to get better insight into #35644 which was closed by #37302 and can be removed now.
This commit is contained in:
parent
4b4800e096
commit
4882bb5cd8
|
@ -1306,14 +1306,6 @@ public class SearchIT extends ESRestHighLevelClientTestCase {
|
||||||
CountRequest countRequest = new CountRequest();
|
CountRequest countRequest = new CountRequest();
|
||||||
CountResponse countResponse = execute(countRequest, highLevelClient()::count, highLevelClient()::countAsync);
|
CountResponse countResponse = execute(countRequest, highLevelClient()::count, highLevelClient()::countAsync);
|
||||||
assertCountHeader(countResponse);
|
assertCountHeader(countResponse);
|
||||||
// add logging to get more info about why https://github.com/elastic/elasticsearch/issues/35644 is failing
|
|
||||||
// TODO remove this once #35644 is fixed
|
|
||||||
if (countResponse.getCount() != 12) {
|
|
||||||
SearchRequest searchRequest = new SearchRequest();
|
|
||||||
searchRequest.source(new SearchSourceBuilder().size(20));
|
|
||||||
SearchResponse searchResponse = execute(searchRequest, highLevelClient()::search, highLevelClient()::searchAsync);
|
|
||||||
logger.info("Unexpected hit count, was expecting 12 hits but got: " + searchResponse.toString());
|
|
||||||
}
|
|
||||||
assertEquals(12, countResponse.getCount());
|
assertEquals(12, countResponse.getCount());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue