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 5487bb8 commit 4a3edd8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions context_adapter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ func clearDBPolicy() (*casbin.Enforcer, *ctxBunAdapter) {
panic(err)
}
e.ClearPolicy()
if err := e.SavePolicy(); err != nil {
panic(err)
}
_ = e.SavePolicy()

return e, ca
}

Expand Down

0 comments on commit 4a3edd8

Please sign in to comment.