[#1421] engine/test: Add missing error check after locking object
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
This commit is contained in:
parent
0c8f031080
commit
e0f7513625
1 changed files with 2 additions and 1 deletions
|
@ -326,11 +326,12 @@ func TestLockExpiredRegularObject(t *testing.T) {
|
||||||
require.ErrorAs(t, err, &errNotFound)
|
require.ErrorAs(t, err, &errNotFound)
|
||||||
|
|
||||||
t.Run("lock expired regular object", func(t *testing.T) {
|
t.Run("lock expired regular object", func(t *testing.T) {
|
||||||
engine.Lock(context.Background(),
|
err := engine.Lock(context.Background(),
|
||||||
address.Container(),
|
address.Container(),
|
||||||
oidtest.ID(),
|
oidtest.ID(),
|
||||||
[]oid.ID{address.Object()},
|
[]oid.ID{address.Object()},
|
||||||
)
|
)
|
||||||
|
require.NoError(t, err)
|
||||||
|
|
||||||
res, err := engine.IsLocked(context.Background(), objectcore.AddressOf(object))
|
res, err := engine.IsLocked(context.Background(), objectcore.AddressOf(object))
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
Loading…
Reference in a new issue