Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport of Fix linter issues in policy.go & acl.go into release/1.11.x #16430

Merged

Conversation

hc-github-team-secure-vault-core
Copy link
Contributor

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 with context.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 and append instead of loops to copy/append slices

Overview of commits

@averche averche enabled auto-merge (squash) October 25, 2022 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants