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 c1a9355 commit 0db9c1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context_adapter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 0db9c1e

Please sign in to comment.