elasticsearch/x-pack/plugin/graph
Armin Braun bae6991fb3
Remove ~600 references to SearchResponse in tests (#100966)
We'd like to make `SearchResponse` reference counted and pooled but there are around 6k
instances of tests that create a `SearchResponse` local variable that would need to be
released manually to avoid leaks in the tests.
This does away with about 10% of these spots by adding an override for `assertHitCount`
that handles the actual execution of the search request and its release automatically
and making use of it in all spots where the `.get()` on the request build could be inlined
semi-automatically and in a straight-forward fashion without other code changes.
2023-10-17 15:43:36 +02:00
..
qa Refactor REST tests to the new internal cluster rule orchestration (#100399) 2023-10-17 07:42:43 -04:00
src Remove ~600 references to SearchResponse in tests (#100966) 2023-10-17 15:43:36 +02:00
build.gradle