Fix tests

This commit is contained in:
kolaente 2021-02-14 23:03:44 +01:00
parent d8e10e1a58
commit bef22f5756
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 3 additions and 3 deletions

View File

@ -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])

View File

@ -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