From 675f6e2855c84caf51b8bfe6bfd7d456e8e1b835 Mon Sep 17 00:00:00 2001 From: Oleg Vasilev Date: Fri, 28 Jun 2024 00:15:44 +0400 Subject: [PATCH] fix the test Signed-off-by: Oleg Vasilev --- neonvm/controllers/vm_controller_unit_test.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/neonvm/controllers/vm_controller_unit_test.go b/neonvm/controllers/vm_controller_unit_test.go index 1478485dc..522da582e 100644 --- a/neonvm/controllers/vm_controller_unit_test.go +++ b/neonvm/controllers/vm_controller_unit_test.go @@ -98,9 +98,12 @@ func newTestParams(t *testing.T) *testParams { scheme.AddKnownTypes(corev1.SchemeGroupVersion, &corev1.Pod{}) params := &testParams{ - t: t, - ctx: ctx, - client: fake.NewClientBuilder().WithScheme(scheme).Build(), + t: t, + ctx: ctx, + client: fake.NewClientBuilder(). + WithScheme(scheme). + WithStatusSubresource(&vmv1.VirtualMachine{}). + Build(), //nolint:exhaustruct // This is a mock mockRecorder: &mockRecorder{}, r: nil,