From bf4f32e1c01e54ed0e5ce78ce3627843cdd42c9f Mon Sep 17 00:00:00 2001 From: "Masih H. Derkani" Date: Wed, 22 May 2024 13:20:05 +0100 Subject: [PATCH] Fix go vet issues and upgrade to latest `golangci-lint` Fix lint build failing in merge queue and upgrade to latest linters. See: * https://github.com/filecoin-project/go-f3/actions/runs/9190680236/job/25276522745 --- .github/workflows/ci.yml | 2 +- test/ec_divergence_test.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e2c89b1..dae76526 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: - version: v1.54 + version: v1.58 only-new-issues: true - name: Tidy go.mod run: go mod tidy diff --git a/test/ec_divergence_test.go b/test/ec_divergence_test.go index 254f7f80..6240c385 100644 --- a/test/ec_divergence_test.go +++ b/test/ec_divergence_test.go @@ -29,6 +29,7 @@ func TestEcDivergence_AbsoluteDivergenceConvergesOnBase(t *testing.T) { }, } for _, test := range tests { + test := test t.Run(test.name, func(t *testing.T) { seedFuzzer := uint64(985623) @@ -117,6 +118,7 @@ func TestEcDivergence_PartitionedNetworkConvergesOnChainWithMostPower(t *testing }, } for _, test := range tests { + test := test t.Run(test.name, func(t *testing.T) { seedFuzzer := uint64(784523)