[#570] *: Use generator of test container IDs from API Go lib

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-05-31 14:27:58 +03:00 committed by Leonard Lyubich
parent 3dd10b6795
commit 3e1463cc76
26 changed files with 64 additions and 155 deletions

View file

@ -5,6 +5,7 @@ import (
"testing"
cid "github.com/nspcc-dev/neofs-api-go/pkg/container/id"
cidtest "github.com/nspcc-dev/neofs-api-go/pkg/container/id/test"
"github.com/nspcc-dev/neofs-node/pkg/core/object"
meta "github.com/nspcc-dev/neofs-node/pkg/local_object_storage/metabase"
"github.com/stretchr/testify/require"
@ -84,7 +85,7 @@ func TestDB_ContainerSize(t *testing.T) {
objs := make(map[*cid.ID][]*object.RawObject, C*N)
for i := 0; i < C; i++ {
cid := testCID()
cid := cidtest.Generate()
cids[cid] = 0
for j := 0; j < N; j++ {