1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-22 08:52:15 -05:00

disarm socket timeout in integration tests

This commit is contained in:
Felix Hammerl 2014-11-18 16:33:29 +01:00
parent eabdeaf888
commit f11d4e8df3

View File

@ -221,6 +221,9 @@ describe('Email DAO integration tests', function() {
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(openpgp, 'initWorker', function() {});