forked from TrueCloudLab/frostfs-node
[#1437] node: Fix contextcheck linter
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
6921a89061
commit
7429553266
209 changed files with 1068 additions and 1036 deletions
|
@ -21,7 +21,7 @@ func TestDB_Lock(t *testing.T) {
|
|||
|
||||
cnr := cidtest.ID()
|
||||
db := newDB(t)
|
||||
defer func() { require.NoError(t, db.Close()) }()
|
||||
defer func() { require.NoError(t, db.Close(context.Background())) }()
|
||||
|
||||
t.Run("empty locked list", func(t *testing.T) {
|
||||
require.Panics(t, func() { _ = db.Lock(context.Background(), cnr, oid.ID{}, nil) })
|
||||
|
@ -187,7 +187,7 @@ func TestDB_Lock_Expired(t *testing.T) {
|
|||
es := &epochState{e: 123}
|
||||
|
||||
db := newDB(t, meta.WithEpochState(es))
|
||||
defer func() { require.NoError(t, db.Close()) }()
|
||||
defer func() { require.NoError(t, db.Close(context.Background())) }()
|
||||
|
||||
// put an object
|
||||
addr := putWithExpiration(t, db, objectSDK.TypeRegular, 124)
|
||||
|
@ -209,7 +209,7 @@ func TestDB_IsLocked(t *testing.T) {
|
|||
t.Parallel()
|
||||
|
||||
db := newDB(t)
|
||||
defer func() { require.NoError(t, db.Close()) }()
|
||||
defer func() { require.NoError(t, db.Close(context.Background())) }()
|
||||
|
||||
// existing and locked objs
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue