forked from TrueCloudLab/frostfs-node
[#160] Fix metabase test for virtual object
Parent should not have split header. Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
e580f2afd6
commit
f1a3acd27a
1 changed files with 4 additions and 3 deletions
|
@ -43,9 +43,6 @@ func generateObject(t require.TestingT, prm testPrm) *object.Object {
|
||||||
obj.SetID(testOID())
|
obj.SetID(testOID())
|
||||||
obj.SetVersion(pkg.SDKVersion())
|
obj.SetVersion(pkg.SDKVersion())
|
||||||
obj.SetContainerID(testCID())
|
obj.SetContainerID(testCID())
|
||||||
obj.SetChildren(testOID())
|
|
||||||
obj.SetPreviousID(testOID())
|
|
||||||
obj.SetParentID(testOID())
|
|
||||||
obj.SetPayloadChecksum(generateChecksum())
|
obj.SetPayloadChecksum(generateChecksum())
|
||||||
obj.SetPayloadHomomorphicHash(generateChecksum())
|
obj.SetPayloadHomomorphicHash(generateChecksum())
|
||||||
obj.SetType(objectSDK.TypeRegular)
|
obj.SetType(objectSDK.TypeRegular)
|
||||||
|
@ -78,6 +75,10 @@ func generateObject(t require.TestingT, prm testPrm) *object.Object {
|
||||||
|
|
||||||
if prm.withParent {
|
if prm.withParent {
|
||||||
prm.withParent = false
|
prm.withParent = false
|
||||||
|
|
||||||
|
obj.SetChildren(testOID())
|
||||||
|
obj.SetPreviousID(testOID())
|
||||||
|
obj.SetParentID(testOID())
|
||||||
obj.SetParent(generateObject(t, prm).SDK())
|
obj.SetParent(generateObject(t, prm).SDK())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue