From eb30b477d5dd91f5826faa545ed887a77be20208 Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Wed, 13 Sep 2023 10:56:49 -0600 Subject: [PATCH] Passing tests --- context.go | 5 +++++ node_test.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/context.go b/context.go index ddc78c7..2a32958 100644 --- a/context.go +++ b/context.go @@ -1081,6 +1081,11 @@ func NewContext(db * badger.DB, log Logger) (*Context, error) { return nil, err } + err = ctx.RegisterPolicy(reflect.TypeOf(MemberOfPolicy{}), MemberOfPolicyType) + if err != nil { + return nil, err + } + err = ctx.RegisterPolicy(reflect.TypeOf(AllNodesPolicy{}), AllNodesPolicyType) if err != nil { return nil, err diff --git a/node_test.go b/node_test.go index 4eadd58..44c67df 100644 --- a/node_test.go +++ b/node_test.go @@ -8,7 +8,7 @@ import ( ) func TestNodeDB(t *testing.T) { - ctx := logTestContext(t, []string{"signal", "node", "db", "serialize", "listener"}) + ctx := logTestContext(t, []string{"signal", "node", "db", "listener"}) node_type := NewNodeType("test") err := ctx.RegisterNodeType(node_type, []ExtType{GroupExtType}) fatalErr(t, err)