From 5487bb8b2a5d847a93671a61b1adf65380c91f4d Mon Sep 17 00:00:00 2001 From: Jun Nishimura Date: Sun, 31 Mar 2024 13:12:54 +0900 Subject: [PATCH] fix unit test (#5) --- context_adapter_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/context_adapter_test.go b/context_adapter_test.go index 08f7914..4f8a9d5 100644 --- a/context_adapter_test.go +++ b/context_adapter_test.go @@ -71,6 +71,7 @@ func TestCtxBunAdapter_LoadPolicyCtx(t *testing.T) { func TestCtxBunAdapter_SavePolicyCtx(t *testing.T) { e, ca := clearDBPolicy() + e.EnableAutoSave(false) _, _ = e.AddPolicy("alice", "data1", "read") assert.NoError(t, ca.SavePolicyCtx(context.Background(), e.GetModel())) _ = e.LoadPolicy()