forked from TrueCloudLab/frostfs-node
[#203] control: Fix test
Fix shard compare loop. Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
f32f61df87
commit
4ec69cbbf8
1 changed files with 3 additions and 1 deletions
|
@ -85,7 +85,9 @@ func equalListShardResponseBodies(b1, b2 *control.ListShardsResponse_Body) bool
|
||||||
|
|
||||||
info1 := b1.Shards[i].GetBlobstor()
|
info1 := b1.Shards[i].GetBlobstor()
|
||||||
info2 := b2.Shards[i].GetBlobstor()
|
info2 := b2.Shards[i].GetBlobstor()
|
||||||
return compareBlobstorInfo(info1, info2)
|
if !compareBlobstorInfo(info1, info2) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for i := range b1.Shards {
|
for i := range b1.Shards {
|
||||||
|
|
Loading…
Reference in a new issue