Fixed TestParseMail

This commit is contained in:
Antonio 2019-01-15 09:58:52 +01:00
parent 0b3f8fbd29
commit 331b118220

View File

@ -248,7 +248,11 @@ So, "Hello".`,
}
for index, td := range testData {
e, err := Parse(strings.NewReader(td.mailData))
m, err := mail.ReadMessage(strings.NewReader(td.mailData))
if err != nil {
t.Error(err)
}
e, err := Parse(m)
if err != nil {
t.Error(err)
}