test: use actual broken eml

This commit is contained in:
James Houlahan
2020-09-15 07:57:53 +02:00
parent 46e5cb9c83
commit eaa9a458c4
3 changed files with 3 additions and 3 deletions

View File

@ -211,7 +211,7 @@ func (api *FakePMAPI) Import(importMessageRequests []*pmapi.ImportMsgReq) ([]*pm
}
func (api *FakePMAPI) generateMessageFromImportRequest(msgReq *pmapi.ImportMsgReq) (*pmapi.Message, error) {
m, _, _, _, err := message.Parse(bytes.NewReader(msgReq.Body), "", "")
m, _, _, _, err := message.Parse(bytes.NewReader(msgReq.Body), "", "") // nolint[dogsled]
if err != nil {
return nil, err
}

View File

@ -49,7 +49,7 @@ Feature: Import from EML files
Scenario: Import broken EML message
Given there is EML file "Broken/broken.eml"
"""
Content-type: image/png
Content-type: multipart/mixed
"""
When user "user" imports local files with rules
| source | target |

View File

@ -53,7 +53,7 @@ Feature: Import from MBOX files
Given there is MBOX file "Broken.mbox"
"""
From bridgetest@pm.test Thu Feb 20 20:20:20 2020
Content-type: image/png
Content-type: multipart/mixed
"""
When user "user" imports local files with rules
| source | target |