chore: bump golangci-lint and fix all linting issues (#21761)
This commit is contained in:
@@ -35,7 +35,6 @@ func TestNewGrant(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, tc := range tcs {
|
||||
tc := tc
|
||||
t.Run(tc.title, func(t *testing.T) {
|
||||
_, err := NewGrant(tc.blockTime, tc.a, tc.expire)
|
||||
expecError(require.New(t), tc.err, err)
|
||||
@@ -59,7 +58,6 @@ func TestValidateBasic(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, tc := range tcs {
|
||||
tc := tc
|
||||
t.Run(tc.title, func(t *testing.T) {
|
||||
grant := Grant{
|
||||
Authorization: tc.authorization,
|
||||
|
||||
@@ -192,7 +192,6 @@ func (suite *TestSuite) TestGRPCQueryGranterGrants() {
|
||||
}
|
||||
|
||||
for _, tc := range testCases {
|
||||
tc := tc
|
||||
suite.Run(fmt.Sprintf("Case %s", tc.msg), func() {
|
||||
tc.preRun()
|
||||
result, err := queryClient.GranterGrants(gocontext.Background(), &tc.request)
|
||||
@@ -275,8 +274,6 @@ func (suite *TestSuite) TestGRPCQueryGranteeGrants() {
|
||||
}
|
||||
|
||||
for _, tc := range testCases {
|
||||
tc := tc
|
||||
|
||||
suite.Run(fmt.Sprintf("Case %s", tc.msg), func() {
|
||||
tc.preRun()
|
||||
result, err := queryClient.GranteeGrants(gocontext.Background(), &tc.request)
|
||||
|
||||
@@ -48,7 +48,6 @@ func TestDecodeStore(t *testing.T) {
|
||||
}
|
||||
|
||||
for i, tt := range tests {
|
||||
i, tt := i, tt
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
if tt.expectErr {
|
||||
require.Panics(t, func() { dec(kvPairs.Pairs[i], kvPairs.Pairs[i]) }, tt.name)
|
||||
|
||||
Reference in New Issue
Block a user