diff --git a/pkg/raft/election_test.go b/pkg/raft/election_test.go index ebb513db4d..4d2b65be97 100644 --- a/pkg/raft/election_test.go +++ b/pkg/raft/election_test.go @@ -311,7 +311,6 @@ func TestDynamicLeaderElectionRun(t *testing.T) { } for name, spec := range specs { - name, spec := name, spec t.Run(name, func(t *testing.T) { d, runCtx, cancel := spec.setup(t) defer cancel()