From daf0e4a4befaaf4a4952b14a0aad2ce30d360d3b Mon Sep 17 00:00:00 2001 From: Stefan Bueringer Date: Mon, 12 Aug 2024 15:39:07 +0200 Subject: [PATCH] Machine Controller should try to retrieve node on delete - fix unit test --- internal/controllers/machine/machine_controller_test.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/internal/controllers/machine/machine_controller_test.go b/internal/controllers/machine/machine_controller_test.go index 375b2813541a..cf935894f03b 100644 --- a/internal/controllers/machine/machine_controller_test.go +++ b/internal/controllers/machine/machine_controller_test.go @@ -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()