@@ -42,8 +42,6 @@ func TestClusterReconciliationNoEndpoint(t *testing.T) {
42
42
43
43
c := conditions .Get (reconciled , infrav1 .LoadBalancerAvailableCondition )
44
44
g .Expect (c ).To (BeNil ())
45
-
46
- g .Expect (reconciled .Finalizers ).To (HaveLen (0 ))
47
45
}
48
46
49
47
func TestClusterReconciliationWithClusterEndpoint (t * testing.T ) {
@@ -89,8 +87,6 @@ func TestClusterReconciliationWithClusterEndpoint(t *testing.T) {
89
87
c = conditions .Get (reconciled , clusterv1 .ReadyCondition )
90
88
g .Expect (c ).ToNot (BeNil ())
91
89
g .Expect (c .Status ).To (Equal (corev1 .ConditionTrue ))
92
-
93
- g .Expect (reconciled .Finalizers ).To (HaveLen (1 ))
94
90
}
95
91
96
92
func TestClusterReconciliationWithMvmClusterEndpoint (t * testing.T ) {
@@ -136,8 +132,6 @@ func TestClusterReconciliationWithMvmClusterEndpoint(t *testing.T) {
136
132
c = conditions .Get (reconciled , clusterv1 .ReadyCondition )
137
133
g .Expect (c ).ToNot (BeNil ())
138
134
g .Expect (c .Status ).To (Equal (corev1 .ConditionTrue ))
139
-
140
- g .Expect (reconciled .Finalizers ).To (HaveLen (1 ))
141
135
}
142
136
143
137
func TestClusterReconciliationWithClusterEndpointAPIServerNotReady (t * testing.T ) {
@@ -177,8 +171,6 @@ func TestClusterReconciliationWithClusterEndpointAPIServerNotReady(t *testing.T)
177
171
c = conditions .Get (reconciled , clusterv1 .ReadyCondition )
178
172
g .Expect (c ).ToNot (BeNil ())
179
173
g .Expect (c .Status ).To (Equal (corev1 .ConditionFalse ))
180
-
181
- g .Expect (reconciled .Finalizers ).To (HaveLen (1 ))
182
174
}
183
175
184
176
func TestClusterReconciliationMicrovmAlreadyDeleted (t * testing.T ) {
@@ -221,8 +213,6 @@ func TestClusterReconciliationNotOwner(t *testing.T) {
221
213
222
214
c := conditions .Get (reconciled , infrav1 .LoadBalancerAvailableCondition )
223
215
g .Expect (c ).To (BeNil ())
224
-
225
- g .Expect (reconciled .Finalizers ).To (HaveLen (0 ))
226
216
}
227
217
228
218
func TestClusterReconciliationWhenPaused (t * testing.T ) {
@@ -251,8 +241,6 @@ func TestClusterReconciliationWhenPaused(t *testing.T) {
251
241
252
242
c := conditions .Get (reconciled , infrav1 .LoadBalancerAvailableCondition )
253
243
g .Expect (c ).To (BeNil ())
254
-
255
- g .Expect (reconciled .Finalizers ).To (HaveLen (0 ))
256
244
}
257
245
258
246
func TestClusterReconciliationDelete (t * testing.T ) {
@@ -276,7 +264,6 @@ func TestClusterReconciliationDelete(t *testing.T) {
276
264
g .Expect (result .RequeueAfter ).To (Equal (time .Duration (0 )))
277
265
278
266
// TODO: when we move to envtest this should return an NotFound error. #30
279
- reconciled , err : = getMicrovmCluster (context .TODO (), client , testClusterName , testClusterNamespace )
267
+ _ , err = getMicrovmCluster (context .TODO (), client , testClusterName , testClusterNamespace )
280
268
g .Expect (err ).NotTo (HaveOccurred ())
281
- g .Expect (reconciled .Finalizers ).To (HaveLen (0 ))
282
269
}
0 commit comments