diff --git a/cmd/argocd/commands/admin/app_test.go b/cmd/argocd/commands/admin/app_test.go index cadce3e857009..9a76c122c9d85 100644 --- a/cmd/argocd/commands/admin/app_test.go +++ b/cmd/argocd/commands/admin/app_test.go @@ -101,7 +101,7 @@ func TestGetReconcileResults_Refresh(t *testing.T) { }, nil) repoServerClientset := mocks.Clientset{RepoServerServiceClient: &repoServerClient} liveStateCache := cachemocks.LiveStateCache{} - liveStateCache.On("GetManagedLiveObjs", mock.Anything, mock.Anything).Return(map[kube.ResourceKey]*unstructured.Unstructured{ + liveStateCache.On("GetManagedLiveObjs", mock.Anything, mock.Anything, mock.Anything).Return(map[kube.ResourceKey]*unstructured.Unstructured{ kube.GetResourceKey(deployment): deployment, }, nil) liveStateCache.On("GetVersionsInfo", mock.Anything).Return("v1.2.3", nil, nil) diff --git a/controller/appcontroller_test.go b/controller/appcontroller_test.go index a6f543896e2b0..057777251cfe5 100644 --- a/controller/appcontroller_test.go +++ b/controller/appcontroller_test.go @@ -203,7 +203,7 @@ func newFakeControllerWithResync(data *fakeData, appResyncPeriod time.Duration, ctrl.appStateManager.(*appStateManager).liveStateCache = &mockStateCache ctrl.stateCache = &mockStateCache mockStateCache.On("IsNamespaced", mock.Anything, mock.Anything).Return(true, nil) - mockStateCache.On("GetManagedLiveObjs", mock.Anything, mock.Anything).Return(data.managedLiveObjs, nil) + mockStateCache.On("GetManagedLiveObjs", mock.Anything, mock.Anything, mock.Anything).Return(data.managedLiveObjs, nil) mockStateCache.On("GetVersionsInfo", mock.Anything).Return("v1.2.3", nil, nil) response := make(map[kube.ResourceKey]v1alpha1.ResourceNode) for k, v := range data.namespacedResources {