From f1a3acd27aab75a7fb71d9112e4140500bb0c58d Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Thu, 12 Nov 2020 10:57:54 +0300 Subject: [PATCH] [#160] Fix metabase test for virtual object Parent should not have split header. Signed-off-by: Alex Vanin --- pkg/local_object_storage/metabase/put_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/local_object_storage/metabase/put_test.go b/pkg/local_object_storage/metabase/put_test.go index c378dbff29..3e3dc11d7b 100644 --- a/pkg/local_object_storage/metabase/put_test.go +++ b/pkg/local_object_storage/metabase/put_test.go @@ -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()) }