Collapse verbose .execute().actionGet() calls in tests (#102502)

Cleaning this up a little even though it's still quite horrible.
`.get()` in this API actually means `actionGet()` so to speak.
I think a good first step to cleaning this up is to at least reduce
the duplication though and save 1k lines.
This commit is contained in:
Armin Braun 2023-11-23 10:10:10 +01:00 committed by GitHub
parent 5e8b5d64f4
commit a9c286b25c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
146 changed files with 1035 additions and 1998 deletions

View file

@ -650,8 +650,7 @@ public class MoreExpressionIT extends ESIntegTestCase {
.endObject()
.endObject()
)
.execute()
.actionGet();
.get();
refresh();
// access .lat
assertNoFailuresAndResponse(buildRequest("doc['location'].lat"), rsp -> {