Skip to content

Commit

Permalink
corrected tests 2
Browse files Browse the repository at this point in the history
  • Loading branch information
bsoniam committed Jun 3, 2019
1 parent 5f5ca10 commit 5774e71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/events/component_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ func initMap(params ...string) map[string]string {
return res
}

/*
func TestGetEventsSummary(t *testing.T) {
var mockCtrl = gomock.NewController(t)
defer mockCtrl.Finish()
Expand All @@ -143,4 +142,3 @@ func TestGetEventsSummary(t *testing.T) {
assert.Equal(t, 1, len(res.Origins))
}
}
*/
2 changes: 2 additions & 0 deletions pkg/management/component_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1332,6 +1332,8 @@ func TestSendNewEnrolmentCode(t *testing.T) {

var ctx = context.WithValue(context.Background(), cs.CtContextAccessToken, accessToken)

mockEventDBModule.EXPECT().ReportEvent(ctx, "SMS_CHALLENGE", "back-office", gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any()).Return(nil).AnyTimes()

codeRes, err := managementComponent.SendNewEnrolmentCode(ctx, "master", userID)

assert.Nil(t, err)
Expand Down

0 comments on commit 5774e71

Please sign in to comment.