From 1caeb0b648cc0ffb9273df8dc88c026df1c3b11e Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Tue, 26 Apr 2022 18:23:24 +0300 Subject: [PATCH] [#1318] metabase: Add missing error check in tests Signed-off-by: Pavel Karpy --- pkg/local_object_storage/metabase/graveyard_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/local_object_storage/metabase/graveyard_test.go b/pkg/local_object_storage/metabase/graveyard_test.go index 3a14d16c0e..5a0abbed94 100644 --- a/pkg/local_object_storage/metabase/graveyard_test.go +++ b/pkg/local_object_storage/metabase/graveyard_test.go @@ -142,6 +142,7 @@ func TestDB_IterateDeletedObjects(t *testing.T) { WithAddresses(object.AddressOf(obj3), object.AddressOf(obj4)). WithGCMark(), ) + require.NoError(t, err) var ( counterAll int @@ -158,6 +159,7 @@ func TestDB_IterateDeletedObjects(t *testing.T) { return nil })) + require.NoError(t, err) iterGCPRM := new(meta.GarbageIterationPrm) @@ -167,7 +169,6 @@ func TestDB_IterateDeletedObjects(t *testing.T) { return nil })) - require.NoError(t, err) // objects covered with a tombstone