[#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:
Alex Vanin 2020-11-12 10:57:54 +03:00 committed by Alex Vanin
parent e580f2afd6
commit f1a3acd27a

View file

@ -43,9 +43,6 @@ func generateObject(t require.TestingT, prm testPrm) *object.Object {
obj.SetID(testOID())
obj.SetVersion(pkg.SDKVersion())
obj.SetContainerID(testCID())
obj.SetChildren(testOID())
obj.SetPreviousID(testOID())
obj.SetParentID(testOID())
obj.SetPayloadChecksum(generateChecksum())
obj.SetPayloadHomomorphicHash(generateChecksum())
obj.SetType(objectSDK.TypeRegular)
@ -78,6 +75,10 @@ func generateObject(t require.TestingT, prm testPrm) *object.Object {
if prm.withParent {
prm.withParent = false
obj.SetChildren(testOID())
obj.SetPreviousID(testOID())
obj.SetParentID(testOID())
obj.SetParent(generateObject(t, prm).SDK())
}