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
|
@ -43,12 +43,12 @@ func BenchmarkWriteAfterDelete(b *testing.B) {
|
|||
b.SetParallelism(parallel)
|
||||
benchmarkRunPar(b, cache, payloadSize)
|
||||
})
|
||||
require.NoError(b, cache.Close())
|
||||
require.NoError(b, cache.Close(context.Background()))
|
||||
}
|
||||
|
||||
func benchmarkPutSeq(b *testing.B, cache writecache.Cache, size uint64) {
|
||||
benchmarkPutPrepare(b, cache)
|
||||
defer func() { require.NoError(b, cache.Close()) }()
|
||||
defer func() { require.NoError(b, cache.Close(context.Background())) }()
|
||||
|
||||
ctx := context.Background()
|
||||
objGen := testutil.RandObjGenerator{ObjSize: size}
|
||||
|
@ -71,7 +71,7 @@ func benchmarkPutSeq(b *testing.B, cache writecache.Cache, size uint64) {
|
|||
|
||||
func benchmarkPutPar(b *testing.B, cache writecache.Cache, size uint64) {
|
||||
benchmarkPutPrepare(b, cache)
|
||||
defer func() { require.NoError(b, cache.Close()) }()
|
||||
defer func() { require.NoError(b, cache.Close(context.Background())) }()
|
||||
|
||||
benchmarkRunPar(b, cache, size)
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ func benchmarkRunPar(b *testing.B, cache writecache.Cache, size uint64) {
|
|||
|
||||
func benchmarkPutPrepare(b *testing.B, cache writecache.Cache) {
|
||||
require.NoError(b, cache.Open(context.Background(), mode.ReadWrite), "opening")
|
||||
require.NoError(b, cache.Init(), "initializing")
|
||||
require.NoError(b, cache.Init(context.Background()), "initializing")
|
||||
}
|
||||
|
||||
type testMetabase struct{}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue