[#1671] Use slices.Delete()
where possible
gopatch is missing for this one, because https://github.com/uber-go/gopatch/issues/179 Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
155d3ddb6e
commit
460e5cbccf
7 changed files with 15 additions and 8 deletions
|
@ -3,6 +3,7 @@ package blobstortest
|
|||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"slices"
|
||||
"testing"
|
||||
|
||||
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/blobstor/common"
|
||||
|
@ -26,7 +27,7 @@ func TestIterate(t *testing.T, cons Constructor, minSize, maxSize uint64) {
|
|||
_, err := s.Delete(context.Background(), delPrm)
|
||||
require.NoError(t, err)
|
||||
|
||||
objects = append(objects[:delID], objects[delID+1:]...)
|
||||
objects = slices.Delete(objects, delID, delID+1)
|
||||
|
||||
runTestNormalHandler(t, s, objects)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue