Increase information on assertRecoveryStats assertion (#60960)

Backport of #60952
This commit is contained in:
Francisco Fernández Castaño 2020-08-11 15:30:59 +02:00 committed by GitHub
parent 6062672148
commit d544528c7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -703,7 +703,7 @@ public class SearchableSnapshotsIntegTests extends BaseSearchableSnapshotsIntegT
private void assertRecoveryStats(String indexName, boolean preWarmEnabled) {
int shardCount = getNumShards(indexName).totalNumShards;
final RecoveryResponse recoveryResponse = client().admin().indices().prepareRecoveries(indexName).get();
assertThat(recoveryResponse.shardRecoveryStates().get(indexName).size(), equalTo(shardCount));
assertThat(recoveryResponse.toString(), recoveryResponse.shardRecoveryStates().get(indexName).size(), equalTo(shardCount));
for (List<RecoveryState> recoveryStates : recoveryResponse.shardRecoveryStates().values()) {
for (RecoveryState recoveryState : recoveryStates) {