Skip to content

Commit

Permalink
Machine Controller should try to retrieve node on delete - fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
sbueringer committed Aug 12, 2024
1 parent 38df8bc commit daf0e4a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions internal/controllers/machine/machine_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2631,10 +2631,11 @@ func TestNodeDeletionWithoutNodeRefFallback(t *testing.T) {
tracker := remote.NewTestClusterCacheTracker(ctrl.Log, fakeClient, fakeClient, fakeScheme, client.ObjectKeyFromObject(&testCluster))

r := &Reconciler{
Client: fakeClient,
Tracker: tracker,
recorder: record.NewFakeRecorder(10),
nodeDeletionRetryTimeout: 10 * time.Millisecond,
UnstructuredCachingClient: fakeClient,
Client: fakeClient,
Tracker: tracker,
recorder: record.NewFakeRecorder(10),
nodeDeletionRetryTimeout: 10 * time.Millisecond,
}

cluster := testCluster.DeepCopy()
Expand Down

0 comments on commit daf0e4a

Please sign in to comment.