Skip to content

Commit

Permalink
[release-v1.7] build: Update golangci-lint to v1.51.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
davecgh committed Apr 7, 2023
1 parent a8ead69 commit 8ab603d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Check out source
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c #v3.3.0
- name: Install Linters
run: "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.42.0"
run: "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.51.1"
- name: Build
run: go build ./...
- name: Test
Expand Down
2 changes: 1 addition & 1 deletion blockchain/internal/spendpruner/pruner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ func TestSpendPruner(t *testing.T) {
hashB := &chainhash.Hash{'b'}
err = pruner.addSpendConsumerDeps(hashB)
if err != nil {
t.Fatal("unexpected error adding consumer dependencies "+
t.Fatalf("unexpected error adding consumer dependencies "+
"for hashB: %v", err)
}

Expand Down
2 changes: 1 addition & 1 deletion internal/mempool/mempool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1248,7 +1248,7 @@ func TestOrphanReject(t *testing.T) {

// Ensure no transactions were reported as accepted.
if len(acceptedTxns) != 0 {
t.Fatal("ProcessTransaction: reported %d accepted "+
t.Fatalf("ProcessTransaction: reported %d accepted "+
"transactions from failed orphan attempt",
len(acceptedTxns))
}
Expand Down

0 comments on commit 8ab603d

Please sign in to comment.