Skip to content

Commit

Permalink
controllers: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischdi committed Jul 5, 2023
1 parent b347377 commit bf94956
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controllers/vspheredeploymentzone_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,7 @@ func TestVSphereDeploymentZoneReconciler_ReconcileDelete(t *testing.T) {
t.Run("for machines being deleted, should not block deletion", func(t *testing.T) {
deletionTime := metav1.Now()
machineUsingDeplZone.DeletionTimestamp = &deletionTime
machineUsingDeplZone.Finalizers = append(machineUsingDeplZone.Finalizers, "required-to-make-test-succeed")

mgmtContext := fake.NewControllerManagerContext(machineUsingDeplZone, vsphereFailureDomain)
controllerCtx := fake.NewControllerContext(mgmtContext)
Expand Down

0 comments on commit bf94956

Please sign in to comment.