[#96] node: Drop neo-go's slices package

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2023-11-17 10:58:04 +03:00
parent 47286ebf32
commit 76ff26039c
9 changed files with 25 additions and 20 deletions

View file

@ -1,6 +1,7 @@
package blobovniczatree
import (
"bytes"
"context"
"os"
"path/filepath"
@ -10,7 +11,6 @@ import (
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/blobstor/common"
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/blobstor/internal/blobstortest"
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/util/logger/test"
"github.com/nspcc-dev/neo-go/pkg/util/slice"
"github.com/stretchr/testify/require"
)
@ -37,7 +37,7 @@ func TestExistsInvalidStorageID(t *testing.T) {
t.Run("valid but wrong storage id", func(t *testing.T) {
// "0/X/Y" <-> "1/X/Y"
storageID := slice.Copy(putRes.StorageID)
storageID := bytes.Clone(putRes.StorageID)
if storageID[0] == '0' {
storageID[0]++
} else {