diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 60111802..3a991255 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -50,10 +50,10 @@ jobs: run: go install mvdan.cc/gofumpt@v0.4.0 - name: Install staticcheck - run: go install honnef.co/go/tools/cmd/staticcheck@v0.4.6 + run: go install honnef.co/go/tools/cmd/staticcheck@v0.5.1 - name: Install golangci-lint - run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.0 + run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.1 - name: Lint run: make lint diff --git a/services/api/optimistic_test.go b/services/api/optimistic_test.go index b000546d..8ba21846 100644 --- a/services/api/optimistic_test.go +++ b/services/api/optimistic_test.go @@ -3,6 +3,7 @@ package api import ( "context" "encoding/json" + "errors" "fmt" "math/big" "net/http" @@ -166,7 +167,7 @@ func TestSimulateBlock(t *testing.T) { { description: "block_already_known_capella", version: spec.DataVersionCapella, - simulationError: fmt.Errorf(ErrBlockAlreadyKnown), //nolint:goerr113 + simulationError: errors.New(ErrBlockAlreadyKnown), //nolint:goerr113 }, { description: "missing_trie_node_capella", @@ -186,7 +187,7 @@ func TestSimulateBlock(t *testing.T) { { description: "block_already_known_deneb", version: spec.DataVersionDeneb, - simulationError: fmt.Errorf(ErrBlockAlreadyKnown), //nolint:goerr113 + simulationError: errors.New(ErrBlockAlreadyKnown), //nolint:goerr113 }, { description: "missing_trie_node_deneb",