From 4ec69cbbf81e26cbb4fda91dbe3592b83d10f5dc Mon Sep 17 00:00:00 2001 From: Dmitrii Stepanov Date: Mon, 3 Apr 2023 16:58:37 +0300 Subject: [PATCH] [#203] control: Fix test Fix shard compare loop. Signed-off-by: Dmitrii Stepanov --- pkg/services/control/service_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/services/control/service_test.go b/pkg/services/control/service_test.go index f39a304f..8c96e2b7 100644 --- a/pkg/services/control/service_test.go +++ b/pkg/services/control/service_test.go @@ -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 {