commit | 331b1182209c6820765fd2cd7be990f88674cb70 | [log] [tgz] |
---|---|---|
author | Antonio <abuconjic@lookingglasscyber.com> | Tue Jan 15 09:58:52 2019 +0100 |
committer | Antonio <abuconjic@lookingglasscyber.com> | Tue Jan 15 09:58:52 2019 +0100 |
tree | bcd54412da020910b6c320664c7e6eb95f3b53b5 | |
parent | 0b3f8fbd290a122e14ef929ab93139b4cb1147d3 [diff] [blame] |
Fixed TestParseMail
diff --git a/parsemail_test.go b/parsemail_test.go index 809aad8..e0457bb 100644 --- a/parsemail_test.go +++ b/parsemail_test.go
@@ -248,7 +248,11 @@ } 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) }