Skip to content

Commit

Permalink
fix unit test (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
JunNishimura committed Mar 31, 2024
1 parent 661364e commit 5487bb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions context_adapter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5487bb8

Please sign in to comment.