From e1b172aaf0e984791b5af4a64b144339fd4042f6 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Wed, 24 Aug 2022 21:29:17 +0200 Subject: dag: test op serialisation with the unmarshaller, to allow resolving entities --- entities/bug/op_create_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'entities/bug/op_create_test.go') diff --git a/entities/bug/op_create_test.go b/entities/bug/op_create_test.go index e534162b..d8bde46f 100644 --- a/entities/bug/op_create_test.go +++ b/entities/bug/op_create_test.go @@ -40,10 +40,10 @@ func TestCreate(t *testing.T) { } func TestCreateSerialize(t *testing.T) { - dag.SerializeRoundTripTest(t, func(author identity.Interface, unixTime int64) *CreateOperation { - return NewCreateOp(author, unixTime, "title", "message", nil) + dag.SerializeRoundTripTest(t, operationUnmarshaler, func(author identity.Interface, unixTime int64) (*CreateOperation, entity.Resolvers) { + return NewCreateOp(author, unixTime, "title", "message", nil), nil }) - dag.SerializeRoundTripTest(t, func(author identity.Interface, unixTime int64) *CreateOperation { - return NewCreateOp(author, unixTime, "title", "message", []repository.Hash{"hash1", "hash2"}) + dag.SerializeRoundTripTest(t, operationUnmarshaler, func(author identity.Interface, unixTime int64) (*CreateOperation, entity.Resolvers) { + return NewCreateOp(author, unixTime, "title", "message", []repository.Hash{"hash1", "hash2"}), nil }) } -- cgit