Skip to content

Commit

Permalink
Update check_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaushik-Vijayakumar authored Oct 25, 2024
1 parent ac7ae84 commit a78a70d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion operator/redisfailover/service/check_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ func TestCheckAllSlavesFromMasterGetStatefulSetError(t *testing.T) {
ms := &mK8SService.Services{}
ms.On("GetStatefulSetPods", namespace, rfservice.GetRedisName(rf)).Once().Return(nil, errors.New(""))
ms.On("UpdatePodLabels", namespace, mock.AnythingOfType("string"), mock.Anything).Once().Return(nil)
ms.On("UpdatePodAnnotations", namespace, mock.AnythingOfType("string"), mock.Anything).Once().Return(nil)
mr := &mRedisService.Client{}

checker := rfservice.NewRedisFailoverChecker(ms, mr, log.DummyLogger{}, metrics.Dummy)

Check failure on line 164 in operator/redisfailover/service/check_test.go

View workflow job for this annotation

GitHub Actions / Golang Check

cannot use ms (variable of type *"github.com/spotahome/redis-operator/mocks/service/k8s".Services) as k8s.Services value in argument to rfservice.NewRedisFailoverChecker: *"github.com/spotahome/redis-operator/mocks/service/k8s".Services does not implement k8s.Services (missing method UpdatePodAnnotations)

Check failure on line 164 in operator/redisfailover/service/check_test.go

View workflow job for this annotation

GitHub Actions / Unit test

cannot use ms (variable of type *"github.com/spotahome/redis-operator/mocks/service/k8s".Services) as k8s.Services value in argument to rfservice.NewRedisFailoverChecker: *"github.com/spotahome/redis-operator/mocks/service/k8s".Services does not implement k8s.Services (missing method UpdatePodAnnotations)
Expand Down

0 comments on commit a78a70d

Please sign in to comment.