Skip to content

Commit 94acc72

Browse files
committed
tweak
1 parent 23d591a commit 94acc72

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/framework/src/main/java/org/elasticsearch/test/rest/ESRestTestCase.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1858,8 +1858,7 @@ public static void ensureHealth(RestClient restClient, String index, Consumer<Re
18581858
} catch (ResponseException e) {
18591859
if (e.getResponse().getStatusLine().getStatusCode() == HttpStatus.SC_REQUEST_TIMEOUT) {
18601860
try {
1861-
final Request clusterStateRequest = new Request("GET", "/_cluster/state?pretty");
1862-
final Response clusterStateResponse = restClient.performRequest(clusterStateRequest);
1861+
final Response clusterStateResponse = restClient.performRequest(new Request("GET", "/_cluster/state?pretty"));
18631862
fail(
18641863
"timed out waiting for green state for index ["
18651864
+ index

0 commit comments

Comments
 (0)