From bef22f5756c29a060be427e2540c9a59309018d7 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 14 Feb 2021 23:03:44 +0100 Subject: [PATCH] Fix tests --- pkg/notifications/mail_test.go | 2 +- pkg/notifications/notification_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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