From ab4496522b6fbdaaad87493e09a68731c3c347ea Mon Sep 17 00:00:00 2001 From: Vincent Boutour Date: Tue, 14 Sep 2021 10:38:57 +0200 Subject: [PATCH] test: Removing unexpected calls to ketchup service Signed-off-by: Vincent Boutour --- pkg/notifier/notifier_test.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/notifier/notifier_test.go b/pkg/notifier/notifier_test.go index b224136b..c899e69d 100644 --- a/pkg/notifier/notifier_test.go +++ b/pkg/notifier/notifier_test.go @@ -257,7 +257,6 @@ func TestGetKetchupToNotify(t *testing.T) { mockKetchupService.EXPECT().ListForRepositories(gomock.Any(), gomock.Any(), gomock.Any()).Return(nil, errors.New("failed")) case "empty": mockKetchupService.EXPECT().ListForRepositories(gomock.Any(), gomock.Any(), gomock.Any()).Return(nil, nil) - mockKetchupService.EXPECT().ListOutdatedByFrequency(gomock.Any(), gomock.Any()).Return(nil, nil) case "one release, n ketchups": mockKetchupService.EXPECT().ListForRepositories(gomock.Any(), gomock.Any(), gomock.Any()).Return([]model.Ketchup{ { @@ -297,7 +296,6 @@ func TestGetKetchupToNotify(t *testing.T) { Version: "1.1.0", }, }, nil) - mockKetchupService.EXPECT().ListOutdatedByFrequency(gomock.Any(), gomock.Any()).Return(nil, nil) } got, gotErr := tc.instance.getKetchupToNotify(tc.args.ctx, tc.args.releases)