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()