Skip to content

Commit

Permalink
Remove duplicated assert in test (opensearch-project#12616)
Browse files Browse the repository at this point in the history
This line can be safely removed because the two lines following
this assert test exactly the same condition.

Signed-off-by: Lukáš Vlček <lukas.vlcek@aiven.io>
  • Loading branch information
lukas-vlcek authored and rayshrey committed Mar 18, 2024
1 parent ba3ae91 commit fa4d913
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,6 @@ public void testGatewayRecovery() throws Exception {
logger.info("--> request recoveries");
RecoveryResponse response = client().admin().indices().prepareRecoveries(INDEX_NAME).execute().actionGet();
assertThat(response.shardRecoveryStates().size(), equalTo(SHARD_COUNT));
assertThat(response.shardRecoveryStates().get(INDEX_NAME).size(), equalTo(1));

List<RecoveryState> recoveryStates = response.shardRecoveryStates().get(INDEX_NAME);
assertThat(recoveryStates.size(), equalTo(1));
Expand Down

0 comments on commit fa4d913

Please sign in to comment.