[#979] Upgrade SDK NeoFS Go dependency

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-12-01 16:56:48 +03:00 committed by LeL
parent 3fcd7bc948
commit 6f41cd86ed
33 changed files with 57 additions and 57 deletions

View file

@ -46,10 +46,10 @@ func TestStickyCheck(t *testing.T) {
info.requestRole = eacl.RoleSystem
info.basicACL.SetSticky()
require.True(t, stickyBitCheck(info, ownertest.GenerateID()))
require.True(t, stickyBitCheck(info, ownertest.ID()))
info.basicACL.ResetSticky()
require.True(t, stickyBitCheck(info, ownertest.GenerateID()))
require.True(t, stickyBitCheck(info, ownertest.ID()))
})
t.Run("owner ID and/or public key emptiness", func(t *testing.T) {
@ -73,7 +73,7 @@ func TestStickyCheck(t *testing.T) {
var ownerID *owner.ID
if withOwner {
ownerID = ownertest.GenerateID()
ownerID = ownertest.ID()
}
require.Equal(t, expected, stickyBitCheck(info, ownerID))

View file

@ -61,7 +61,7 @@ func testID(t *testing.T) *objectSDK.ID {
func testAddress(t *testing.T) *objectSDK.Address {
addr := objectSDK.NewAddress()
addr.SetObjectID(testID(t))
addr.SetContainerID(cidtest.GenerateID())
addr.SetContainerID(cidtest.ID())
return addr
}

View file

@ -189,7 +189,7 @@ func generateAddress() *objectSDK.Address {
addr := objectSDK.NewAddress()
addr.SetObjectID(generateID())
addr.SetContainerID(cidtest.GenerateID())
addr.SetContainerID(cidtest.ID())
return addr
}

View file

@ -159,7 +159,7 @@ func TestGetLocalOnly(t *testing.T) {
storage := newTestStorage()
svc := newSvc(storage)
cid := cidtest.GenerateID()
cid := cidtest.ID()
ids := generateIDs(10)
storage.addResult(cid, ids, nil)
@ -175,7 +175,7 @@ func TestGetLocalOnly(t *testing.T) {
storage := newTestStorage()
svc := newSvc(storage)
cid := cidtest.GenerateID()
cid := cidtest.ID()
testErr := errors.New("any error")
storage.addResult(cid, nil, testErr)