Skip to content

Commit 34989ac

Browse files
committed
fix: test
1 parent 3d3199b commit 34989ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controlplane/kubeadm/internal/controllers/controller_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func TestClusterToKubeadmControlPlaneOtherControlPlane(t *testing.T) {
136136
g.Expect(got).To(BeNil())
137137
}
138138

139-
func TestReconcileReturnErrorWhenOwnerClusterIsMissing(t *testing.T) {
139+
func TestReconcileDoesNothingWhenOwnerClusterIsMissing(t *testing.T) {
140140
g := NewWithT(t)
141141

142142
ns, err := env.CreateNamespace(ctx, "test-reconcile-return-error")
@@ -165,7 +165,7 @@ func TestReconcileReturnErrorWhenOwnerClusterIsMissing(t *testing.T) {
165165
g.Eventually(func() error {
166166
_, err := r.Reconcile(ctx, ctrl.Request{NamespacedName: util.ObjectKey(kcp)})
167167
return err
168-
}, 10*time.Second).Should(HaveOccurred())
168+
}, 10*time.Second).Should(BeNil())
169169
}
170170

171171
func TestReconcileUpdateObservedGeneration(t *testing.T) {

0 commit comments

Comments
 (0)