From e0f7513625ffc9f201cc0d7eaa75368a465cb836 Mon Sep 17 00:00:00 2001 From: Aleksey Savchuk Date: Wed, 11 Dec 2024 16:18:22 +0300 Subject: [PATCH] [#1421] engine/test: Add missing error check after locking object Signed-off-by: Aleksey Savchuk --- pkg/local_object_storage/engine/lock_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/local_object_storage/engine/lock_test.go b/pkg/local_object_storage/engine/lock_test.go index 7bb9e3934..4c239e45b 100644 --- a/pkg/local_object_storage/engine/lock_test.go +++ b/pkg/local_object_storage/engine/lock_test.go @@ -326,11 +326,12 @@ func TestLockExpiredRegularObject(t *testing.T) { require.ErrorAs(t, err, &errNotFound) t.Run("lock expired regular object", func(t *testing.T) { - engine.Lock(context.Background(), + err := engine.Lock(context.Background(), address.Container(), oidtest.ID(), []oid.ID{address.Object()}, ) + require.NoError(t, err) res, err := engine.IsLocked(context.Background(), objectcore.AddressOf(object)) require.NoError(t, err)