Increase information on assertRecoveryStats assertion (#60960)
Backport of #60952
This commit is contained in:
parent
6062672148
commit
d544528c7b
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue