forked from forgejo/forgejo
refactoring nits (#18188)
* no octal for time values * rm artifact from refactoring Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
parent
6da078d616
commit
0572c78938
5 changed files with 22 additions and 21 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue