forked from TrueCloudLab/frostfs-node
[#86] node: Fix unit test and linter errors
All checks were successful
ci/woodpecker/push/pre-commit Pipeline was successful
All checks were successful
ci/woodpecker/push/pre-commit Pipeline was successful
Signed-off-by: Airat Arifullin <aarifullin@yadro.com>
This commit is contained in:
parent
9808dec591
commit
34329d67ff
4 changed files with 6 additions and 5 deletions
|
@ -59,7 +59,7 @@ var _ ObjectGenerator = &SeqObjGenerator{}
|
|||
|
||||
func generateObjectWithOIDWithCIDWithSize(oid oid.ID, cid cid.ID, sz uint64) *object.Object {
|
||||
data := make([]byte, sz)
|
||||
rand.Read(data)
|
||||
_, _ = rand.Read(data)
|
||||
obj := GenerateObjectWithCIDWithPayload(cid, data)
|
||||
obj.SetID(oid)
|
||||
return obj
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue