Skip to content

Commit

Permalink
Remove duplicated assert in test (#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]>
(cherry picked from commit ef9314e)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Mar 13, 2024
1 parent 1235756 commit b8ae6e3
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 b8ae6e3

Please sign in to comment.