forked from TrueCloudLab/frostfs-sdk-go
[#236] *: Replace slice.Copy() with bytes.Clone()
The former is deprecated. Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
e977b8a94c
commit
fc7c524fcb
3 changed files with 7 additions and 7 deletions
|
@ -1,6 +1,7 @@
|
|||
package session_test
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"crypto/ecdsa"
|
||||
"fmt"
|
||||
"math"
|
||||
|
@ -19,7 +20,6 @@ import (
|
|||
usertest "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/user/test"
|
||||
"github.com/google/uuid"
|
||||
"github.com/nspcc-dev/neo-go/pkg/crypto/keys"
|
||||
"github.com/nspcc-dev/neo-go/pkg/util/slice"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
|
@ -200,7 +200,7 @@ func TestObjectProtocolV2(t *testing.T) {
|
|||
breakSign: func(m *v2session.Token) {
|
||||
body := m.GetBody()
|
||||
key := body.GetSessionKey()
|
||||
cp := slice.Copy(key)
|
||||
cp := bytes.Clone(key)
|
||||
cp[len(cp)-1]++
|
||||
body.SetSessionKey(cp)
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue