[#1181] Do not use deprecated elements

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2022-03-05 11:49:19 +03:00 committed by LeL
parent e3f4e48d87
commit 323dea95c6
6 changed files with 10 additions and 10 deletions

View file

@ -57,7 +57,7 @@ func benchmarkExists(b *testing.B, shardNum int) {
addr := objecttest.Address()
for i := 0; i < 100; i++ {
obj := generateObjectWithCID(b, cidtest.ID())
err := Put(e, obj.Object())
err := Put(e, obj)
if err != nil {
b.Fatal(err)
}
@ -133,7 +133,7 @@ func testOID() *oidSDK.ID {
return id
}
func generateObjectWithCID(t testing.TB, cid *cid.ID) *object.RawObject {
func generateObjectWithCID(t testing.TB, cid *cid.ID) *object.Object {
version := version.New()
version.SetMajor(2)
version.SetMinor(1)