test: fix mailparser timing out smtp

This commit is contained in:
Zack Schuster 2020-05-24 13:08:21 -07:00
parent 4d0b5312f8
commit bb34667c64
1 changed files with 5 additions and 1 deletions

View File

@ -26,7 +26,11 @@ const send = (
done: () => void
) => {
server.onData = (stream: Readable, _session, callback: () => void) => {
mailparser.simpleParser(stream).then(verify).then(done).catch(done);
mailparser
.simpleParser(stream, { skipTextLinks: true } as Record<string, unknown>)
.then(verify)
.then(done)
.catch(done);
stream.on('end', callback);
};
client.send(message, (err) => {