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)