[#203] control: Fix test

Fix shard compare loop.

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
pull/203/head
Dmitrii Stepanov 2023-04-03 16:58:37 +03:00
parent f32f61df87
commit 4ec69cbbf8
1 changed files with 3 additions and 1 deletions

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 {