fix: return error if parsing header fails GODT-502

This commit is contained in:
James Houlahan
2020-06-19 11:06:43 +02:00
committed by Jakub
parent 7724ca3996
commit 7301e5571c
4 changed files with 16 additions and 4 deletions

View File

@ -80,7 +80,7 @@ func TestCreateOrUpdateMessageMetadata(t *testing.T) {
a.Equal(t, []*pmapi.Attachment(nil), msg.Attachments)
a.Equal(t, int64(-1), msg.Size)
a.Equal(t, "", msg.MIMEType)
a.Equal(t, mail.Header(nil), msg.Header)
a.Equal(t, make(mail.Header), msg.Header)
// Change the calculated data.
wantSize := int64(42)