[#203] control: Fix test

Fix shard compare loop.

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2023-04-03 16:58:37 +03:00
parent f32f61df87
commit 4ec69cbbf8

View file

@ -85,7 +85,9 @@ func equalListShardResponseBodies(b1, b2 *control.ListShardsResponse_Body) bool
info1 := b1.Shards[i].GetBlobstor()
info2 := b2.Shards[i].GetBlobstor()
return compareBlobstorInfo(info1, info2)
if !compareBlobstorInfo(info1, info2) {
return false
}
}
for i := range b1.Shards {