Other(test): Add send recorder test case

This commit is contained in:
Jakub Cuth
2022-10-25 10:03:52 +00:00
committed by James Houlahan
parent 7745b68228
commit 16978b8949

View File

@ -324,6 +324,12 @@ func TestGetMessageHash(t *testing.T) {
lit2: []byte(literal2),
wantEqual: false,
},
{
name: "different date and message ID should still match",
lit1: []byte("To: a@b.c\r\nDate: Fri, 13 Aug 1982\r\nMessage-Id: 1@b.c\r\n\r\nHello"),
lit2: []byte("To: a@b.c\r\nDate: Sat, 14 Aug 1982\r\nMessage-Id: 2@b.c\r\n\r\nHello"),
wantEqual: true,
},
}
for _, tt := range tests {