diff --git a/go.mod b/go.mod index 9f262722..68269c1d 100644 --- a/go.mod +++ b/go.mod @@ -12,8 +12,8 @@ require ( github.com/multiformats/go-multiaddr v0.4.0 github.com/nspcc-dev/hrw v1.0.9 github.com/nspcc-dev/neo-go v0.97.4-pre.0.20211126130906-87f5113c031b - github.com/nspcc-dev/neofs-api-go/v2 v2.11.0-pre.0.20211124141318-d93828f46514 - github.com/nspcc-dev/neofs-sdk-go v0.0.0-20211126125208-279a5a1e0bfe + github.com/nspcc-dev/neofs-api-go/v2 v2.11.0-pre.0.20211201134523-3604d96f3fe1 + github.com/nspcc-dev/neofs-sdk-go v0.0.0-20211201135501-471ed5a3ec0b github.com/nspcc-dev/tzhash v1.4.0 github.com/panjf2000/ants/v2 v2.4.0 github.com/paulmach/orb v0.2.2 diff --git a/go.sum b/go.sum index d3e97d65..23f83a91 100644 Binary files a/go.sum and b/go.sum differ diff --git a/pkg/core/object/fmt_test.go b/pkg/core/object/fmt_test.go index c6e853c7..358f1513 100644 --- a/pkg/core/object/fmt_test.go +++ b/pkg/core/object/fmt_test.go @@ -42,7 +42,7 @@ func blankValidObject(t *testing.T, key *ecdsa.PrivateKey) *RawObject { ownerID.SetNeo3Wallet(wallet) obj := NewRaw() - obj.SetContainerID(cidtest.GenerateID()) + obj.SetContainerID(cidtest.ID()) obj.SetOwnerID(ownerID) return obj @@ -87,7 +87,7 @@ func TestFormatValidator_Validate(t *testing.T) { t.Run("unsigned object", func(t *testing.T) { obj := NewRaw() - obj.SetContainerID(cidtest.GenerateID()) + obj.SetContainerID(cidtest.ID()) obj.SetID(testObjectID(t)) require.Error(t, v.Validate(obj.Object())) @@ -97,12 +97,12 @@ func TestFormatValidator_Validate(t *testing.T) { w, err := owner.NEO3WalletFromPublicKey((*ecdsa.PublicKey)(ownerKey.PublicKey())) require.NoError(t, err) - tok := sessiontest.Generate() + tok := sessiontest.Token() tok.SetOwnerID(owner.NewIDFromNeo3Wallet(w)) obj := NewRaw() - obj.SetContainerID(cidtest.GenerateID()) - obj.SetSessionToken(sessiontest.Generate()) + obj.SetContainerID(cidtest.ID()) + obj.SetSessionToken(sessiontest.Token()) obj.SetOwnerID(tok.OwnerID()) require.NoError(t, object.SetIDWithSignature(&ownerKey.PrivateKey, obj.SDK())) diff --git a/pkg/innerring/processors/audit/scheduler_test.go b/pkg/innerring/processors/audit/scheduler_test.go index 7dcb010d..2865112b 100644 --- a/pkg/innerring/processors/audit/scheduler_test.go +++ b/pkg/innerring/processors/audit/scheduler_test.go @@ -79,7 +79,7 @@ func generateContainers(n int) []*cid.ID { result := make([]*cid.ID, 0, n) for i := 0; i < n; i++ { - result = append(result, cidtest.GenerateID()) + result = append(result, cidtest.ID()) } return result diff --git a/pkg/innerring/processors/subnet/put_test.go b/pkg/innerring/processors/subnet/put_test.go index 50c5f31b..2dbc6e66 100644 --- a/pkg/innerring/processors/subnet/put_test.go +++ b/pkg/innerring/processors/subnet/put_test.go @@ -101,7 +101,7 @@ func TestPutValidator_Assert(t *testing.T) { // diff explicit creator and the one in info var creator2 owner.ID - creator2 = *ownertest.GenerateID() + creator2 = *ownertest.ID() e.info.SetOwner(creator2) diff --git a/pkg/local_object_storage/blobovnicza/blobovnicza_test.go b/pkg/local_object_storage/blobovnicza/blobovnicza_test.go index 3eaca6af..ced698da 100644 --- a/pkg/local_object_storage/blobovnicza/blobovnicza_test.go +++ b/pkg/local_object_storage/blobovnicza/blobovnicza_test.go @@ -28,7 +28,7 @@ func testAddress() *objectSDK.Address { addr := objectSDK.NewAddress() addr.SetObjectID(oid) - addr.SetContainerID(cidtest.GenerateID()) + addr.SetContainerID(cidtest.ID()) return addr } diff --git a/pkg/local_object_storage/blobstor/blobovnicza_test.go b/pkg/local_object_storage/blobstor/blobovnicza_test.go index f341c808..0b2d9af7 100644 --- a/pkg/local_object_storage/blobstor/blobovnicza_test.go +++ b/pkg/local_object_storage/blobstor/blobovnicza_test.go @@ -26,7 +26,7 @@ func testAddress() *objectSDK.Address { addr := objectSDK.NewAddress() addr.SetObjectID(oid) - addr.SetContainerID(cidtest.GenerateID()) + addr.SetContainerID(cidtest.ID()) return addr } diff --git a/pkg/local_object_storage/blobstor/fstree/fstree_test.go b/pkg/local_object_storage/blobstor/fstree/fstree_test.go index 6f08c286..208c2dcf 100644 --- a/pkg/local_object_storage/blobstor/fstree/fstree_test.go +++ b/pkg/local_object_storage/blobstor/fstree/fstree_test.go @@ -26,7 +26,7 @@ func testOID() *objectSDK.ID { func testAddress() *objectSDK.Address { a := objectSDK.NewAddress() a.SetObjectID(testOID()) - a.SetContainerID(cidtest.GenerateID()) + a.SetContainerID(cidtest.ID()) return a } diff --git a/pkg/local_object_storage/engine/control_test.go b/pkg/local_object_storage/engine/control_test.go index dab560a8..32ed3412 100644 --- a/pkg/local_object_storage/engine/control_test.go +++ b/pkg/local_object_storage/engine/control_test.go @@ -17,7 +17,7 @@ func TestExecBlocks(t *testing.T) { }) // put some object - obj := generateRawObjectWithCID(t, cidtest.GenerateID()).Object() + obj := generateRawObjectWithCID(t, cidtest.ID()).Object() addr := obj.Address() diff --git a/pkg/local_object_storage/engine/engine_test.go b/pkg/local_object_storage/engine/engine_test.go index dacdf702..e94b4d28 100644 --- a/pkg/local_object_storage/engine/engine_test.go +++ b/pkg/local_object_storage/engine/engine_test.go @@ -99,7 +99,7 @@ func generateRawObjectWithCID(t *testing.T, cid *cid.ID) *object.RawObject { obj := object.NewRaw() obj.SetID(testOID()) - obj.SetOwnerID(ownertest.GenerateID()) + obj.SetOwnerID(ownertest.ID()) obj.SetContainerID(cid) obj.SetVersion(version) obj.SetPayloadChecksum(csum) diff --git a/pkg/local_object_storage/engine/head_test.go b/pkg/local_object_storage/engine/head_test.go index 3dec0726..dc673ee1 100644 --- a/pkg/local_object_storage/engine/head_test.go +++ b/pkg/local_object_storage/engine/head_test.go @@ -13,7 +13,7 @@ import ( func TestHeadRaw(t *testing.T) { defer os.RemoveAll(t.Name()) - cid := cidtest.GenerateID() + cid := cidtest.ID() splitID := objectSDK.NewSplitID() parent := generateRawObjectWithCID(t, cid) diff --git a/pkg/local_object_storage/engine/inhume_test.go b/pkg/local_object_storage/engine/inhume_test.go index dcb44524..614f7a68 100644 --- a/pkg/local_object_storage/engine/inhume_test.go +++ b/pkg/local_object_storage/engine/inhume_test.go @@ -13,7 +13,7 @@ import ( func TestStorageEngine_Inhume(t *testing.T) { defer os.RemoveAll(t.Name()) - cid := cidtest.GenerateID() + cid := cidtest.ID() splitID := objectSDK.NewSplitID() fs := objectSDK.SearchFilters{} diff --git a/pkg/local_object_storage/engine/list_test.go b/pkg/local_object_storage/engine/list_test.go index 84edb304..80b21fc1 100644 --- a/pkg/local_object_storage/engine/list_test.go +++ b/pkg/local_object_storage/engine/list_test.go @@ -27,7 +27,7 @@ func TestListWithCursor(t *testing.T) { got := make([]*object.Address, 0, total) for i := 0; i < total; i++ { - containerID := cidtest.GenerateID() + containerID := cidtest.ID() obj := generateRawObjectWithCID(t, containerID) prm := new(PutPrm).WithObject(obj.Object()) _, err := e.Put(prm) diff --git a/pkg/local_object_storage/metabase/containers_test.go b/pkg/local_object_storage/metabase/containers_test.go index 2823e4b3..65e42cd5 100644 --- a/pkg/local_object_storage/metabase/containers_test.go +++ b/pkg/local_object_storage/metabase/containers_test.go @@ -127,7 +127,7 @@ func TestDB_ContainerSize(t *testing.T) { objs := make(map[*cid.ID][]*object.RawObject, C*N) for i := 0; i < C; i++ { - cid := cidtest.GenerateID() + cid := cidtest.ID() cids[cid] = 0 for j := 0; j < N; j++ { diff --git a/pkg/local_object_storage/metabase/db_test.go b/pkg/local_object_storage/metabase/db_test.go index c3b7e131..44ed892e 100644 --- a/pkg/local_object_storage/metabase/db_test.go +++ b/pkg/local_object_storage/metabase/db_test.go @@ -61,7 +61,7 @@ func newDB(t testing.TB) *meta.DB { } func generateRawObject(t *testing.T) *object.RawObject { - return generateRawObjectWithCID(t, cidtest.GenerateID()) + return generateRawObjectWithCID(t, cidtest.ID()) } func generateRawObjectWithCID(t *testing.T, cid *cid.ID) *object.RawObject { @@ -80,7 +80,7 @@ func generateRawObjectWithCID(t *testing.T, cid *cid.ID) *object.RawObject { obj := object.NewRaw() obj.SetID(testOID()) - obj.SetOwnerID(ownertest.GenerateID()) + obj.SetOwnerID(ownertest.ID()) obj.SetContainerID(cid) obj.SetVersion(version) obj.SetPayloadChecksum(csum) @@ -92,7 +92,7 @@ func generateRawObjectWithCID(t *testing.T, cid *cid.ID) *object.RawObject { func generateAddress() *objectSDK.Address { addr := objectSDK.NewAddress() - addr.SetContainerID(cidtest.GenerateID()) + addr.SetContainerID(cidtest.ID()) addr.SetObjectID(testOID()) return addr diff --git a/pkg/local_object_storage/metabase/delete_test.go b/pkg/local_object_storage/metabase/delete_test.go index 2b43b95c..c22e766c 100644 --- a/pkg/local_object_storage/metabase/delete_test.go +++ b/pkg/local_object_storage/metabase/delete_test.go @@ -13,7 +13,7 @@ import ( func TestDB_Delete(t *testing.T) { db := newDB(t) - cid := cidtest.GenerateID() + cid := cidtest.ID() parent := generateRawObjectWithCID(t, cid) addAttribute(parent, "foo", "bar") @@ -69,7 +69,7 @@ func TestDB_Delete(t *testing.T) { func TestDeleteAllChildren(t *testing.T) { db := newDB(t) - cid := cidtest.GenerateID() + cid := cidtest.ID() // generate parent object parent := generateRawObjectWithCID(t, cid) diff --git a/pkg/local_object_storage/metabase/exists_test.go b/pkg/local_object_storage/metabase/exists_test.go index 589ce119..8706d463 100644 --- a/pkg/local_object_storage/metabase/exists_test.go +++ b/pkg/local_object_storage/metabase/exists_test.go @@ -55,7 +55,7 @@ func TestDB_Exists(t *testing.T) { }) t.Run("virtual object", func(t *testing.T) { - cid := cidtest.GenerateID() + cid := cidtest.ID() parent := generateRawObjectWithCID(t, cid) child := generateRawObjectWithCID(t, cid) @@ -72,7 +72,7 @@ func TestDB_Exists(t *testing.T) { }) t.Run("merge split info", func(t *testing.T) { - cid := cidtest.GenerateID() + cid := cidtest.ID() splitID := objectSDK.NewSplitID() parent := generateRawObjectWithCID(t, cid) diff --git a/pkg/local_object_storage/metabase/get_test.go b/pkg/local_object_storage/metabase/get_test.go index c1c7c4d4..eeeab2c7 100644 --- a/pkg/local_object_storage/metabase/get_test.go +++ b/pkg/local_object_storage/metabase/get_test.go @@ -59,7 +59,7 @@ func TestDB_Get(t *testing.T) { }) t.Run("put virtual object", func(t *testing.T) { - cid := cidtest.GenerateID() + cid := cidtest.ID() splitID := objectSDK.NewSplitID() parent := generateRawObjectWithCID(t, cid) diff --git a/pkg/local_object_storage/metabase/list_test.go b/pkg/local_object_storage/metabase/list_test.go index 17475278..d2516005 100644 --- a/pkg/local_object_storage/metabase/list_test.go +++ b/pkg/local_object_storage/metabase/list_test.go @@ -23,7 +23,7 @@ func TestLisObjectsWithCursor(t *testing.T) { // fill metabase with objects for i := 0; i < containers; i++ { - containerID := cidtest.GenerateID() + containerID := cidtest.ID() // add one regular object obj := generateRawObjectWithCID(t, containerID) diff --git a/pkg/local_object_storage/metabase/select_test.go b/pkg/local_object_storage/metabase/select_test.go index 7b420077..864fd4ab 100644 --- a/pkg/local_object_storage/metabase/select_test.go +++ b/pkg/local_object_storage/metabase/select_test.go @@ -15,7 +15,7 @@ import ( func TestDB_SelectUserAttributes(t *testing.T) { db := newDB(t) - cid := cidtest.GenerateID() + cid := cidtest.ID() raw1 := generateRawObjectWithCID(t, cid) addAttribute(raw1, "foo", "bar") @@ -137,7 +137,7 @@ func TestDB_SelectUserAttributes(t *testing.T) { func TestDB_SelectRootPhyParent(t *testing.T) { db := newDB(t) - cid := cidtest.GenerateID() + cid := cidtest.ID() // prepare @@ -304,7 +304,7 @@ func TestDB_SelectRootPhyParent(t *testing.T) { func TestDB_SelectInhume(t *testing.T) { db := newDB(t) - cid := cidtest.GenerateID() + cid := cidtest.ID() raw1 := generateRawObjectWithCID(t, cid) err := putBig(db, raw1.Object()) @@ -336,7 +336,7 @@ func TestDB_SelectInhume(t *testing.T) { func TestDB_SelectPayloadHash(t *testing.T) { db := newDB(t) - cid := cidtest.GenerateID() + cid := cidtest.ID() raw1 := generateRawObjectWithCID(t, cid) err := putBig(db, raw1.Object()) @@ -371,7 +371,7 @@ func TestDB_SelectPayloadHash(t *testing.T) { func TestDB_SelectWithSlowFilters(t *testing.T) { db := newDB(t) - cid := cidtest.GenerateID() + cid := cidtest.ID() v20 := new(version.Version) v20.SetMajor(2) @@ -469,7 +469,7 @@ func TestDB_SelectWithSlowFilters(t *testing.T) { func TestDB_SelectObjectID(t *testing.T) { db := newDB(t) - cid := cidtest.GenerateID() + cid := cidtest.ID() // prepare @@ -577,7 +577,7 @@ func TestDB_SelectObjectID(t *testing.T) { func TestDB_SelectSplitID(t *testing.T) { db := newDB(t) - cid := cidtest.GenerateID() + cid := cidtest.ID() child1 := generateRawObjectWithCID(t, cid) child2 := generateRawObjectWithCID(t, cid) @@ -631,7 +631,7 @@ func TestDB_SelectSplitID(t *testing.T) { func TestDB_SelectContainerID(t *testing.T) { db := newDB(t) - cid := cidtest.GenerateID() + cid := cidtest.ID() obj1 := generateRawObjectWithCID(t, cid) err := putBig(db, obj1.Object()) @@ -665,7 +665,7 @@ func TestDB_SelectContainerID(t *testing.T) { }) t.Run("not same cid", func(t *testing.T) { - newCID := cidtest.GenerateID() + newCID := cidtest.ID() fs := objectSDK.SearchFilters{} fs.AddObjectContainerIDFilter(objectSDK.MatchStringEqual, newCID) diff --git a/pkg/local_object_storage/shard/delete_test.go b/pkg/local_object_storage/shard/delete_test.go index e3306ed5..67b7d025 100644 --- a/pkg/local_object_storage/shard/delete_test.go +++ b/pkg/local_object_storage/shard/delete_test.go @@ -23,7 +23,7 @@ func testShardDelete(t *testing.T, hasWriteCache bool) { sh := newShard(t, hasWriteCache) defer releaseShard(sh, t) - cid := cidtest.GenerateID() + cid := cidtest.ID() obj := generateRawObjectWithCID(t, cid) addAttribute(obj, "foo", "bar") diff --git a/pkg/local_object_storage/shard/get_test.go b/pkg/local_object_storage/shard/get_test.go index d92dfce9..d0f9de9c 100644 --- a/pkg/local_object_storage/shard/get_test.go +++ b/pkg/local_object_storage/shard/get_test.go @@ -68,7 +68,7 @@ func testShardGet(t *testing.T, hasWriteCache bool) { t.Run("parent object", func(t *testing.T) { obj := generateRawObject(t) addAttribute(obj, "foo", "bar") - cid := cidtest.GenerateID() + cid := cidtest.ID() splitID := objectSDK.NewSplitID() parent := generateRawObjectWithCID(t, cid) diff --git a/pkg/local_object_storage/shard/head_test.go b/pkg/local_object_storage/shard/head_test.go index 36dff11d..ead199d1 100644 --- a/pkg/local_object_storage/shard/head_test.go +++ b/pkg/local_object_storage/shard/head_test.go @@ -46,7 +46,7 @@ func testShardHead(t *testing.T, hasWriteCache bool) { }) t.Run("virtual object", func(t *testing.T) { - cid := cidtest.GenerateID() + cid := cidtest.ID() splitID := objectSDK.NewSplitID() parent := generateRawObjectWithCID(t, cid) diff --git a/pkg/local_object_storage/shard/inhume_test.go b/pkg/local_object_storage/shard/inhume_test.go index 61367825..b467ab4c 100644 --- a/pkg/local_object_storage/shard/inhume_test.go +++ b/pkg/local_object_storage/shard/inhume_test.go @@ -23,7 +23,7 @@ func testShardInhume(t *testing.T, hasWriteCache bool) { sh := newShard(t, hasWriteCache) defer releaseShard(sh, t) - cid := cidtest.GenerateID() + cid := cidtest.ID() obj := generateRawObjectWithCID(t, cid) addAttribute(obj, "foo", "bar") diff --git a/pkg/local_object_storage/shard/list_test.go b/pkg/local_object_storage/shard/list_test.go index 49c88954..3ea6a0c8 100644 --- a/pkg/local_object_storage/shard/list_test.go +++ b/pkg/local_object_storage/shard/list_test.go @@ -34,7 +34,7 @@ func testShardList(t *testing.T, sh *shard.Shard) { putPrm := new(shard.PutPrm) for i := 0; i < C; i++ { - cid := cidtest.GenerateID() + cid := cidtest.ID() for j := 0; j < N; j++ { obj := generateRawObjectWithCID(t, cid) diff --git a/pkg/local_object_storage/shard/shard_test.go b/pkg/local_object_storage/shard/shard_test.go index 30807b2b..f8955260 100644 --- a/pkg/local_object_storage/shard/shard_test.go +++ b/pkg/local_object_storage/shard/shard_test.go @@ -65,7 +65,7 @@ func releaseShard(s *shard.Shard, t testing.TB) { } func generateRawObject(t *testing.T) *object.RawObject { - return generateRawObjectWithCID(t, cidtest.GenerateID()) + return generateRawObjectWithCID(t, cidtest.ID()) } func generateRawObjectWithCID(t *testing.T, cid *cid.ID) *object.RawObject { @@ -84,7 +84,7 @@ func generateRawObjectWithCID(t *testing.T, cid *cid.ID) *object.RawObject { obj := object.NewRaw() obj.SetID(generateOID()) - obj.SetOwnerID(ownertest.GenerateID()) + obj.SetOwnerID(ownertest.ID()) obj.SetContainerID(cid) obj.SetVersion(version) obj.SetPayloadChecksum(csum) diff --git a/pkg/morph/client/audit/wrapper/result_test.go b/pkg/morph/client/audit/wrapper/result_test.go index be8d4711..6f749c39 100644 --- a/pkg/morph/client/audit/wrapper/result_test.go +++ b/pkg/morph/client/audit/wrapper/result_test.go @@ -33,7 +33,7 @@ func TestAuditResults(t *testing.T) { auditClientWrapper, err := auditWrapper.NewFromMorph(morphClient, auditHash, 0) require.NoError(t, err) - id := cidtest.GenerateID() + id := cidtest.ID() auditRes := auditAPI.NewResult() auditRes.SetAuditEpoch(epoch) diff --git a/pkg/services/container/announcement/load/controller/calls_test.go b/pkg/services/container/announcement/load/controller/calls_test.go index 1899d632..199ca57c 100644 --- a/pkg/services/container/announcement/load/controller/calls_test.go +++ b/pkg/services/container/announcement/load/controller/calls_test.go @@ -75,7 +75,7 @@ func (s *testAnnouncementStorage) Close() error { func randAnnouncement() container.UsedSpaceAnnouncement { a := container.NewAnnouncement() - a.SetContainerID(cidtest.GenerateID()) + a.SetContainerID(cidtest.ID()) a.SetUsedSpace(rand.Uint64()) return *a diff --git a/pkg/services/container/announcement/load/storage/storage_test.go b/pkg/services/container/announcement/load/storage/storage_test.go index b5d4689f..7a76e3c5 100644 --- a/pkg/services/container/announcement/load/storage/storage_test.go +++ b/pkg/services/container/announcement/load/storage/storage_test.go @@ -13,7 +13,7 @@ func TestStorage(t *testing.T) { const epoch uint64 = 13 a := container.NewAnnouncement() - a.SetContainerID(cidtest.GenerateID()) + a.SetContainerID(cidtest.ID()) a.SetEpoch(epoch) const opinionsNum = 100 diff --git a/pkg/services/object/acl/acl_test.go b/pkg/services/object/acl/acl_test.go index c41e12f7..a0dad696 100644 --- a/pkg/services/object/acl/acl_test.go +++ b/pkg/services/object/acl/acl_test.go @@ -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)) diff --git a/pkg/services/object/acl/eacl/v2/eacl_test.go b/pkg/services/object/acl/eacl/v2/eacl_test.go index 934587a8..faf244e3 100644 --- a/pkg/services/object/acl/eacl/v2/eacl_test.go +++ b/pkg/services/object/acl/eacl/v2/eacl_test.go @@ -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 } diff --git a/pkg/services/object/get/get_test.go b/pkg/services/object/get/get_test.go index 56f27e52..5781488f 100644 --- a/pkg/services/object/get/get_test.go +++ b/pkg/services/object/get/get_test.go @@ -189,7 +189,7 @@ func generateAddress() *objectSDK.Address { addr := objectSDK.NewAddress() addr.SetObjectID(generateID()) - addr.SetContainerID(cidtest.GenerateID()) + addr.SetContainerID(cidtest.ID()) return addr } diff --git a/pkg/services/object/search/search_test.go b/pkg/services/object/search/search_test.go index b1e4517c..5e85caac 100644 --- a/pkg/services/object/search/search_test.go +++ b/pkg/services/object/search/search_test.go @@ -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)