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 <[email protected]>
  • Loading branch information
lukas-vlcek authored Mar 13, 2024
1 parent 949f316 commit ef9314e
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 ef9314e

Please sign in to comment.