commit | fc3e6459ae886c53e20cfb15cb0e0f4e9bdf9f9f | [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 11:17:41 2019 +0100 |
tree | d7e19b85e87100ba59e69cf0bfb10c90912d3b3f | |
parent | abc648830b9a1e9440c2c817a42a73a17c0d0c64 [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) }