mirror of https://github.com/moparisthebest/mail
disarm socket timeout in integration tests
This commit is contained in:
parent
eabdeaf888
commit
f11d4e8df3
|
@ -221,6 +221,9 @@ describe('Email DAO integration tests', function() {
|
||||||
|
|
||||||
smtpClient._TCPSocket = smtpServer.createTCPSocket();
|
smtpClient._TCPSocket = smtpServer.createTCPSocket();
|
||||||
|
|
||||||
|
// phantomjs is really slow, so setting the tcp socket timeouts to 200s will effectively disarm the timeout
|
||||||
|
imapClient._client.client.TIMEOUT_SOCKET_LOWER_BOUND = smtpClient.TIMEOUT_SOCKET_LOWER_BOUND = 200000;
|
||||||
|
|
||||||
sinon.stub(mailreader, 'startWorker', function() {});
|
sinon.stub(mailreader, 'startWorker', function() {});
|
||||||
sinon.stub(openpgp, 'initWorker', function() {});
|
sinon.stub(openpgp, 'initWorker', function() {});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue