From 0db9c1ed9505a61963a8e22d1c8305967dd35c39 Mon Sep 17 00:00:00 2001 From: Jun Nishimura Date: Sun, 31 Mar 2024 13:35:09 +0900 Subject: [PATCH] fix unit test (#5) --- context_adapter_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context_adapter_test.go b/context_adapter_test.go index 964eea4..70b97f8 100644 --- a/context_adapter_test.go +++ b/context_adapter_test.go @@ -46,7 +46,7 @@ func TestCtxBunAdapter_LoadPolicyCtx(t *testing.T) { if err != nil { panic(err) } - + _ = ca.SavePolicyCtx(context.Background(), e.GetModel()) assert.NoError(t, ca.LoadPolicyCtx(context.Background(), e.GetModel())) e, _ = casbin.NewEnforcer("testdata/rbac_model.conf", ca) testGetPolicy(