aboutsummaryrefslogtreecommitdiffstats
path: root/services/mailer/mailer_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/mailer/mailer_test.go')
-rw-r--r--services/mailer/mailer_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/mailer/mailer_test.go b/services/mailer/mailer_test.go
index 56f2eb52b0..b94fce8443 100644
--- a/services/mailer/mailer_test.go
+++ b/services/mailer/mailer_test.go
@@ -14,14 +14,14 @@ import (
)
func TestGenerateMessageID(t *testing.T) {
- var mailService = setting.Mailer{
+ mailService := setting.Mailer{
From: "test@gitea.com",
}
setting.MailService = &mailService
setting.Domain = "localhost"
- date := time.Date(2000, 01, 02, 03, 04, 05, 06, time.UTC)
+ date := time.Date(2000, 1, 2, 3, 4, 5, 6, time.UTC)
m := NewMessageFrom(nil, "display-name", "from-address", "subject", "body")
m.Date = date
gm := m.ToMessage()