Skip to content

Commit

Permalink
update golangci-lint, lint fix
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Sutula <[email protected]>
  • Loading branch information
asutula committed Feb 2, 2023
1 parent 2b9c1eb commit 35d5bda
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ test-replayhistory:

# Lint
lint:
go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.50.1 run
go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.0 run
.PHONY: lint

# OpenAPI
Expand Down
10 changes: 6 additions & 4 deletions pkg/backup/pruner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ func TestPruner(t *testing.T) {

for n := 1; n <= 10; n++ {
for keep := 1; keep <= 5; keep++ {
t.Run(fmt.Sprintf("%d-%d", n, keep), func(t *testing.T) {
t.Parallel()
testPruner(t, n, keep)
})
func(keep int) {
t.Run(fmt.Sprintf("%d-%d", n, keep), func(t *testing.T) {
t.Parallel()
testPruner(t, n, keep)
})
}(keep)
}
}
}
Expand Down

0 comments on commit 35d5bda

Please sign in to comment.