Skip to content

Commit

Permalink
Merge pull request #454 from tablelandnetwork/asutula/update-lint
Browse files Browse the repository at this point in the history
Update golangci-lint, lint fix
  • Loading branch information
asutula authored Feb 6, 2023
2 parents 2b9c1eb + 35d5bda commit 78302d1
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 78302d1

Please sign in to comment.