Skip to content

Commit

Permalink
blobstortest: Use errors.Is to asset iteration error
Browse files Browse the repository at this point in the history
Error wrapping is normal, so we should always be ready to it.

Signed-off-by: Leonard Lyubich <[email protected]>
  • Loading branch information
cthulhu-rider committed Aug 11, 2023
1 parent 9327f22 commit 7d09562
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()]
Expand Down

0 comments on commit 7d09562

Please sign in to comment.