update
This commit is contained in:
@@ -194,13 +194,13 @@ tap.test('Very Small Email - should handle email with minimal headers only', asy
|
||||
socket.on('data', handler);
|
||||
});
|
||||
|
||||
// Complete envelope
|
||||
socket.write('MAIL FROM:<a@b.c>\r\n');
|
||||
// Complete envelope - use valid email addresses
|
||||
socket.write('MAIL FROM:<a@example.com>\r\n');
|
||||
await new Promise<string>((resolve) => {
|
||||
socket.once('data', (chunk) => resolve(chunk.toString()));
|
||||
});
|
||||
|
||||
socket.write('RCPT TO:<x@y.z>\r\n');
|
||||
socket.write('RCPT TO:<b@example.com>\r\n');
|
||||
await new Promise<string>((resolve) => {
|
||||
socket.once('data', (chunk) => resolve(chunk.toString()));
|
||||
});
|
||||
@@ -211,7 +211,7 @@ tap.test('Very Small Email - should handle email with minimal headers only', asy
|
||||
});
|
||||
|
||||
// Send absolutely minimal valid email
|
||||
const minimalHeaders = 'From: a@b.c\r\n\r\n.\r\n';
|
||||
const minimalHeaders = 'From: a@example.com\r\n\r\n.\r\n';
|
||||
socket.write(minimalHeaders);
|
||||
|
||||
const finalResponse = await new Promise<string>((resolve) => {
|
||||
|
Reference in New Issue
Block a user