From 013220600bcb42c4ea1b178704b2b0092986a63b Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Fri, 11 Aug 2023 16:50:54 +0400 Subject: [PATCH] blobstortest: Use `errors.Is` to asset iteration error Error wrapping is normal, so we should always be ready to it. Signed-off-by: Leonard Lyubich --- .../blobstor/internal/blobstortest/iterate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/local_object_storage/blobstor/internal/blobstortest/iterate.go b/pkg/local_object_storage/blobstor/internal/blobstortest/iterate.go index f54c255b979..e06c95a5398 100644 --- a/pkg/local_object_storage/blobstor/internal/blobstortest/iterate.go +++ b/pkg/local_object_storage/blobstor/internal/blobstortest/iterate.go @@ -95,7 +95,7 @@ func TestIterate(t *testing.T, cons Constructor, min, max uint64) { } _, err := s.Iterate(iterPrm) - require.Equal(t, logicErr, err) + require.ErrorIs(t, err, logicErr) require.Equal(t, len(objects)/2, len(seen)) for i := range objects { d, ok := seen[objects[i].addr.String()]