Skip to content

Commit

Permalink
Fix: Correct date formatting in TestMakeHeaders
Browse files Browse the repository at this point in the history
  • Loading branch information
axllent committed Jan 1, 2025
1 parent fd46d40 commit e30754a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/smtpd/smtpd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>; " +
Expand Down

0 comments on commit e30754a

Please sign in to comment.