commit | abc648830b9a1e9440c2c817a42a73a17c0d0c64 | [log] [tgz] |
---|---|---|
author | DuĊĦan Kasan <dusan@kasan.sk> | Tue Jan 15 17:19:36 2019 +0100 |
committer | GitHub <noreply@github.com> | Tue Jan 15 17:19:36 2019 +0100 |
tree | bcd54412da020910b6c320664c7e6eb95f3b53b5 | |
parent | 0b3f8fbd290a122e14ef929ab93139b4cb1147d3 [diff] | |
parent | 331b1182209c6820765fd2cd7be990f88674cb70 [diff] |
Merge pull request #3 from OddieWanKenobi/master 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) }