mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2025-12-23 06:15:47 +00:00
Enable 'copyloopvar' linter
This commit is contained in:
@@ -398,7 +398,6 @@ func TestOIDCClientStaticValidation_Parallel(t *testing.T) {
|
||||
require.Len(t, statusErr.ErrStatus.Details.Causes, 4)
|
||||
out := make([]string, 0, len(statusErr.ErrStatus.Details.Causes))
|
||||
for _, cause := range statusErr.ErrStatus.Details.Causes {
|
||||
cause := cause
|
||||
out = append(out, fmt.Sprintf("%s: %s", cause.Field, cause.Message))
|
||||
}
|
||||
sort.Strings(out)
|
||||
@@ -486,7 +485,6 @@ func TestOIDCClientStaticValidation_Parallel(t *testing.T) {
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
tt := tt
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
if tt.skip {
|
||||
t.Skip()
|
||||
@@ -688,7 +686,6 @@ func TestOIDCClientControllerValidations_Parallel(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, tt := range tests {
|
||||
tt := tt
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user