Skip to content

Commit

Permalink
test: Removing unexpected calls to ketchup service
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Sep 14, 2021
1 parent 9353438 commit ab44965
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/notifier/notifier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
{
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ab44965

Please sign in to comment.