From 790add6538cd282e2aca943842e02e5709f988d7 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Fri, 11 Sep 2020 17:35:07 +0300 Subject: [PATCH] [#139] v2/object: Fix string conversion errors for go1.15 Signed-off-by: Alex Vanin --- v2/object/marshal_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/v2/object/marshal_test.go b/v2/object/marshal_test.go index e63683b..8c7777f 100644 --- a/v2/object/marshal_test.go +++ b/v2/object/marshal_test.go @@ -2,6 +2,7 @@ package object_test import ( "fmt" + "strconv" "testing" "github.com/nspcc-dev/neofs-api-go/v2/object" @@ -483,7 +484,7 @@ func generateHeader(ln uint64) *object.Header { hdr.SetHomomorphicHash(generateChecksum("Homomorphic Hash")) hdr.SetObjectType(object.TypeRegular) hdr.SetPayloadHash(generateChecksum("Payload Hash")) - hdr.SetSessionToken(generateSessionToken(string(ln))) + hdr.SetSessionToken(generateSessionToken(strconv.Itoa(int(ln)))) return hdr } @@ -684,7 +685,7 @@ func generateRangeHashResponseBody(n int) *object.GetRangeHashResponseBody { list := make([][]byte, n) for i := 0; i < n; i++ { - list[i] = []byte("Some homomorphic hash data" + string(n)) + list[i] = []byte("Some homomorphic hash data" + strconv.Itoa(n)) } resp.SetType(refs.TillichZemor)