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
|
@ -25,7 +25,7 @@ import (
|
|||
|
||||
func TestDB_Get(t *testing.T) {
|
||||
db := newDB(t, meta.WithEpochState(epochState{currEpoch}))
|
||||
defer func() { require.NoError(t, db.Close()) }()
|
||||
defer func() { require.NoError(t, db.Close(context.Background())) }()
|
||||
|
||||
raw := testutil.GenerateObject()
|
||||
|
||||
|
@ -219,7 +219,7 @@ func benchmarkGet(b *testing.B, numOfObj int) {
|
|||
meta.WithMaxBatchSize(batchSize),
|
||||
meta.WithMaxBatchDelay(10*time.Millisecond),
|
||||
)
|
||||
defer func() { require.NoError(b, db.Close()) }()
|
||||
defer func() { require.NoError(b, db.Close(context.Background())) }()
|
||||
addrs := make([]oid.Address, 0, numOfObj)
|
||||
|
||||
for range numOfObj {
|
||||
|
@ -253,7 +253,7 @@ func benchmarkGet(b *testing.B, numOfObj int) {
|
|||
})
|
||||
})
|
||||
|
||||
require.NoError(b, db.Close())
|
||||
require.NoError(b, db.Close(context.Background()))
|
||||
require.NoError(b, os.RemoveAll(b.Name()))
|
||||
|
||||
db, addrs = prepareDb(1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue