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
|
@ -18,7 +18,7 @@ import (
|
|||
|
||||
func TestDB_Delete(t *testing.T) {
|
||||
db := newDB(t)
|
||||
defer func() { require.NoError(t, db.Close()) }()
|
||||
defer func() { require.NoError(t, db.Close(context.Background())) }()
|
||||
|
||||
cnr := cidtest.ID()
|
||||
parent := testutil.GenerateObjectWithCID(cnr)
|
||||
|
@ -65,7 +65,7 @@ func TestDB_Delete(t *testing.T) {
|
|||
|
||||
func TestDeleteAllChildren(t *testing.T) {
|
||||
db := newDB(t)
|
||||
defer func() { require.NoError(t, db.Close()) }()
|
||||
defer func() { require.NoError(t, db.Close(context.Background())) }()
|
||||
|
||||
cnr := cidtest.ID()
|
||||
|
||||
|
@ -103,7 +103,7 @@ func TestDeleteAllChildren(t *testing.T) {
|
|||
|
||||
func TestGraveOnlyDelete(t *testing.T) {
|
||||
db := newDB(t)
|
||||
defer func() { require.NoError(t, db.Close()) }()
|
||||
defer func() { require.NoError(t, db.Close(context.Background())) }()
|
||||
|
||||
addr := oidtest.Address()
|
||||
|
||||
|
@ -116,7 +116,7 @@ func TestGraveOnlyDelete(t *testing.T) {
|
|||
|
||||
func TestExpiredObject(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())) }()
|
||||
|
||||
checkExpiredObjects(t, db, func(exp, nonExp *objectSDK.Object) {
|
||||
// removing expired object should be error-free
|
||||
|
@ -128,7 +128,7 @@ func TestExpiredObject(t *testing.T) {
|
|||
|
||||
func TestDelete(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())) }()
|
||||
|
||||
cnr := cidtest.ID()
|
||||
for range 10 {
|
||||
|
@ -170,7 +170,7 @@ func TestDelete(t *testing.T) {
|
|||
|
||||
func TestDeleteDropsGCMarkIfObjectNotFound(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())) }()
|
||||
|
||||
addr := oidtest.Address()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue