1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-08-15 20:13:16 +02:00

Fix: Correct date formatting in TestMakeHeaders

This commit is contained in:
Ralph Slooten
2025-01-01 22:49:23 +13:00
parent fd46d4076b
commit e30754a167

View File

@@ -535,7 +535,7 @@ func TestCmdSTARTTLSRequired(t *testing.T) {
}
func TestMakeHeaders(t *testing.T) {
now := time.Now().Format("Mon, _2 Jan 2006 15:04:05 -0700 (MST)")
now := time.Now().Format("Mon, 2 Jan 2006 15:04:05 -0700 (MST)")
valid := "Received: from clientName (clientHost [clientIP])\r\n" +
" by serverName (smtpd) with SMTP\r\n" +
" for <recipient@example.com>; " +