Skip to content

Commit

Permalink
Fix spotless checks
Browse files Browse the repository at this point in the history
Signed-off-by: Pranshu Shukla <[email protected]>
  • Loading branch information
Pranshu-S committed Jul 12, 2024
1 parent 4265456 commit 0ddbe47
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,7 @@ private void assertShardStats(ClusterStatsIndices.ShardStats stats, int indices,
public void testIndicesShardStatsDefault() {
internalCluster().startNode();
ensureGreen();
ClusterStatsResponse response = client().admin()
.cluster()
.prepareClusterStats()
.useOptimizedClusterStatsResponse(false)
.get();
ClusterStatsResponse response = client().admin().cluster().prepareClusterStats().useOptimizedClusterStatsResponse(false).get();
assertThat(response.getStatus(), Matchers.equalTo(ClusterHealthStatus.GREEN));

prepareCreate("test1").setSettings(Settings.builder().put("number_of_shards", 2).put("number_of_replicas", 1)).get();
Expand Down Expand Up @@ -236,11 +232,7 @@ public void testIndicesShardStatsDefault() {
public void testIndicesShardStatsOptimised() {
internalCluster().startNode();
ensureGreen();
ClusterStatsResponse response = client().admin()
.cluster()
.prepareClusterStats()
.useOptimizedClusterStatsResponse(true)
.get();
ClusterStatsResponse response = client().admin().cluster().prepareClusterStats().useOptimizedClusterStatsResponse(true).get();
assertThat(response.getStatus(), Matchers.equalTo(ClusterHealthStatus.GREEN));

prepareCreate("test1").setSettings(Settings.builder().put("number_of_shards", 2).put("number_of_replicas", 1)).get();
Expand Down

0 comments on commit 0ddbe47

Please sign in to comment.