diff --git a/pkg/notifications/mail_test.go b/pkg/notifications/mail_test.go index fddeb306db0..57f6e649115 100644 --- a/pkg/notifications/mail_test.go +++ b/pkg/notifications/mail_test.go @@ -57,7 +57,7 @@ func TestNewMail(t *testing.T) { assert.Equal(t, "test@example.com", mail.from) assert.Equal(t, "test@otherdomain.com", mail.to) assert.Equal(t, "Testmail", mail.subject) - assert.Equal(t, "Hi,", mail.greeting) // Default greeting + assert.Equal(t, "", mail.greeting) assert.Len(t, mail.introLines, 2) assert.Equal(t, "This is a line", mail.introLines[0]) assert.Equal(t, "And another one", mail.introLines[1]) diff --git a/pkg/notifications/notification_test.go b/pkg/notifications/notification_test.go index f0baa0e8ac0..15275356f29 100644 --- a/pkg/notifications/notification_test.go +++ b/pkg/notifications/notification_test.go @@ -48,8 +48,8 @@ type testNotifiable struct { } // RouteForMail routes a test notification for mail -func (t *testNotifiable) RouteForMail() string { - return "some@email.com" +func (t *testNotifiable) RouteForMail() (string, error) { + return "some@email.com", nil } // RouteForDB routes a test notification for db