[#570] *: Use generator of test container IDs from API Go lib
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
3dd10b6795
commit
3e1463cc76
26 changed files with 64 additions and 155 deletions
|
@ -61,16 +61,6 @@ func testNewShard(t *testing.T, id int) *shard.Shard {
|
|||
return s
|
||||
}
|
||||
|
||||
func testCID() *cid.ID {
|
||||
cs := [sha256.Size]byte{}
|
||||
_, _ = rand.Read(cs[:])
|
||||
|
||||
id := cid.New()
|
||||
id.SetSHA256(cs)
|
||||
|
||||
return id
|
||||
}
|
||||
|
||||
func testOID() *objectSDK.ID {
|
||||
cs := [sha256.Size]byte{}
|
||||
_, _ = rand.Read(cs[:])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue