commit | 0c868a486a1fa143bfd345e5dc152e5864596a00 | [log] [tgz] |
---|---|---|
author | Edwin Love <edwin.love@headforwards.com> | Tue Apr 02 11:17:35 2019 +0100 |
committer | Edwin Love <edwin.love@headforwards.com> | Tue Apr 02 15:08:28 2019 +0100 |
tree | d7e19b85e87100ba59e69cf0bfb10c90912d3b3f | |
parent | 331b1182209c6820765fd2cd7be990f88674cb70 [diff] |
Implement changes from PR in order to get tests passing https://github.com/DusanKasan/parsemail/pull/5/files
diff --git a/parsemail_test.go b/parsemail_test.go index e0457bb..809aad8 100644 --- a/parsemail_test.go +++ b/parsemail_test.go
@@ -248,11 +248,7 @@ } for index, td := range testData { - m, err := mail.ReadMessage(strings.NewReader(td.mailData)) - if err != nil { - t.Error(err) - } - e, err := Parse(m) + e, err := Parse(strings.NewReader(td.mailData)) if err != nil { t.Error(err) }