mirror of
https://github.com/eleith/emailjs.git
synced 2024-07-07 12:40:37 +00:00
test: remove timeouts
This commit is contained in:
parent
676c541cb4
commit
50c3789d4b
@ -133,8 +133,6 @@ test.cb('simple unicode text message', (t) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test.cb.skip('very large text message', (t) => {
|
test.cb.skip('very large text message', (t) => {
|
||||||
t.timeout(20000);
|
|
||||||
|
|
||||||
// thanks to jart+loberstech for this one!
|
// thanks to jart+loberstech for this one!
|
||||||
const msg = {
|
const msg = {
|
||||||
subject: 'this is a test TEXT message from emailjs',
|
subject: 'this is a test TEXT message from emailjs',
|
||||||
@ -156,8 +154,6 @@ test.cb.skip('very large text message', (t) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test.cb('very large text data message', (t) => {
|
test.cb('very large text data message', (t) => {
|
||||||
t.timeout(10000);
|
|
||||||
|
|
||||||
const text =
|
const text =
|
||||||
'<html><body><pre>' +
|
'<html><body><pre>' +
|
||||||
readFileSync(join(__dirname, 'attachments/smtp.txt'), 'utf-8') +
|
readFileSync(join(__dirname, 'attachments/smtp.txt'), 'utf-8') +
|
||||||
|
@ -5,8 +5,6 @@ import { client as c, message as m, SMTP } from '../email';
|
|||||||
test.cb(
|
test.cb(
|
||||||
'connecting to wrong email server should not invoke callback multiple times',
|
'connecting to wrong email server should not invoke callback multiple times',
|
||||||
(t) => {
|
(t) => {
|
||||||
t.timeout(5000);
|
|
||||||
|
|
||||||
const client = new c.Client({ host: 'bar.baz' });
|
const client = new c.Client({ host: 'bar.baz' });
|
||||||
const msg = {
|
const msg = {
|
||||||
from: 'foo@bar.baz',
|
from: 'foo@bar.baz',
|
||||||
|
Loading…
Reference in New Issue
Block a user