From 767fc0bd3c4b8fd09b078b1c9acb504c1cdf3feb Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Fri, 21 Jul 2023 13:56:44 -0600 Subject: [PATCH] Updated test to use PerTagPolicy with default gql user tag --- gql_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gql_test.go b/gql_test.go index b57df18..187213c 100644 --- a/gql_test.go +++ b/gql_test.go @@ -157,7 +157,7 @@ func TestGQLAuth(t * testing.T) { key, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader) fatalErr(t, err) - p1_r := NewSimplePolicy(RandID(), NewNodeActions(nil, []string{"*"})) + p1_r := NewPerTagPolicy(RandID(), map[string]NodeActions{"gql": NewNodeActions(nil, []string{"*"})}) p1 := &p1_r gql_t_r := NewGQLThread(RandID(), "GQL Thread", "init", ":0", ecdh.P256(), key, nil, nil)