Skip to content

Commit 5978362

Browse files
committed
Fix incorrect mock return value that potentially caused instability in tests
Signed-off-by: Jonathan Ogilvie <[email protected]>
1 parent 4af0b13 commit 5978362

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controller/appcontroller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ func newFakeControllerWithResync(data *fakeData, appResyncPeriod time.Duration,
218218
mockStateCache.On("IsNamespaced", mock.Anything, mock.Anything).Return(true, nil)
219219
mockStateCache.On("GetManagedLiveObjs", mock.Anything, mock.Anything, mock.Anything).Return(data.managedLiveObjs, nil)
220220
mockStateCache.On("GetVersionsInfo", mock.Anything).Return("v1.2.3", nil, nil)
221-
mockStateCache.On("GetTaintedGVKs", mock.Anything).Return([]string{}, nil)
221+
mockStateCache.On("GetTaintedGVKs", mock.Anything).Return([]string{})
222222
response := make(map[kube.ResourceKey]v1alpha1.ResourceNode)
223223
for k, v := range data.namespacedResources {
224224
response[k] = v.ResourceNode

0 commit comments

Comments
 (0)