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
1 changed files with 3 additions and 0 deletions

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() {});