Skip to content

Commit

Permalink
Fix spotless
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Farr <tsfarr@amazon.com>
  • Loading branch information
Xtansia committed Dec 23, 2024
1 parent f9f77ef commit 3d1f783
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import org.opensearch.client.json.JsonData;
import org.opensearch.client.opensearch.OpenSearchClient;
import org.opensearch.client.opensearch._types.HealthStatus;
import org.opensearch.client.opensearch._types.Level;
import org.opensearch.client.opensearch._types.OpenSearchException;
import org.opensearch.client.opensearch.cluster.ClusterStatsRequest;
import org.opensearch.client.opensearch.cluster.ClusterStatsResponse;
Expand Down Expand Up @@ -229,7 +228,10 @@ public void testClusterHealthYellowSpecificIndex() throws IOException {
OpenSearchClient openSearchClient = javaClient();
createIndex("index", Settings.EMPTY);
createIndex("index2", Settings.EMPTY);
HealthRequest request = new HealthRequest.Builder().index("index").timeout(t -> t.time("5s")).level(ClusterHealthLevel.Shards).build();
HealthRequest request = new HealthRequest.Builder().index("index")
.timeout(t -> t.time("5s"))
.level(ClusterHealthLevel.Shards)
.build();
HealthResponse response = openSearchClient.cluster().health(request);

assertNotNull(response);
Expand Down

0 comments on commit 3d1f783

Please sign in to comment.