vault
vault copied to clipboard
Backport of Fix linter issues in policy.go & acl.go into release/1.11.x
Backport
This PR is auto-generated from #16366 to be assessed for backporting due to the inclusion of the label backport/1.11.x.
The below text is copied from the body of the original PR.
Fixing a few small issues I noticed while looking into policy parameter constraints:
-
nil
was passed to context in tests; replaced it withcontext.Background()
-
t.Fatal
was being used inside of internal go-routines, which would not fail the test; changed the test to push errors into a channel and check them at the end - use
copy
andappend
instead of loops to copy/append slices
Overview of commits
- 1e515ca08cc390b88e4692d9419cfd818335bbbd