Skip to content

Commit be3d179

Browse files
committed
fixup! refactor: add kube-vip static Pod to KCP in the handler
1 parent b95ddc3 commit be3d179

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pkg/common/controlplaneendpoint/virtualip/kubevip_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ func Test_GetFile(t *testing.T) {
4646
},
4747
}
4848

49-
for idx := range tests {
50-
tt := tests[idx] // Capture range variable
49+
for _, tt := range tests {
5150
t.Run(tt.name, func(t *testing.T) {
5251
t.Parallel()
5352
fakeClient := fake.NewClientBuilder().WithObjects(tt.configMap).Build()
@@ -128,8 +127,7 @@ func Test_getTemplateFromConfigMap(t *testing.T) {
128127
},
129128
}
130129

131-
for idx := range tests {
132-
tt := tests[idx] // Capture range variable
130+
for _, tt := range tests {
133131
t.Run(tt.name, func(t *testing.T) {
134132
t.Parallel()
135133
fakeClient := fake.NewClientBuilder().WithObjects(tt.configMap).Build()

0 commit comments

Comments
 (0)