diff --git a/internal/backupcontroller/velerostrategy_controller_test.go b/internal/backupcontroller/velerostrategy_controller_test.go index 6894815b7..11cde37b7 100644 --- a/internal/backupcontroller/velerostrategy_controller_test.go +++ b/internal/backupcontroller/velerostrategy_controller_test.go @@ -355,6 +355,7 @@ func newTestRestoreJobReconcilerWithDynamic(t *testing.T, dynamicObjects []runti fakeClient := clientfake.NewClientBuilder(). WithScheme(testScheme). WithObjects(objects...). + WithStatusSubresource(&backupsv1alpha1.RestoreJob{}). Build() dynamicClient := dynamicfake.NewSimpleDynamicClient(testScheme, dynamicObjects...)