notifier testing

pull/773/head
hunterlong 2020-08-03 01:08:57 -07:00
parent 1cfc5b4bda
commit 0ee9cffb78
2 changed files with 6 additions and 2 deletions

View File

@ -21,7 +21,11 @@ func FindNotifier(method string) *notifications.Notification {
n := allNotifiers[method]
if n != nil {
notif := n.Select()
no, _ := notifications.Find(notif.Method)
no, err := notifications.Find(notif.Method)
if err != nil {
log.Error(err)
return nil
}
return notif.UpdateFields(no)
}
return nil

View File

@ -200,7 +200,7 @@ func startupDb(t *testing.T) {
db.Create(&fail2)
db.Create(&incident1)
db.Create(&incidentUpdate1)
db.Create(&incidentUpdate1)
db.Create(&notification.Notification)
}
func TestServices(t *testing.T) {