From bd13a993a2e6e61ee69361f4c1885fdf5de24bba Mon Sep 17 00:00:00 2001 From: Felix Hammerl Date: Thu, 27 Nov 2014 15:24:10 +0100 Subject: [PATCH] remove timeout from imap and smtp --- test/integration/email-dao-test.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/integration/email-dao-test.js b/test/integration/email-dao-test.js index d1891fa..91d4603 100644 --- a/test/integration/email-dao-test.js +++ b/test/integration/email-dao-test.js @@ -238,9 +238,6 @@ 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; - // stub the onConnect function to inject the test imap/smtp clients sinon.stub(accountService, 'onConnect', function(cb) { accountService._emailDao.onConnect({ @@ -286,6 +283,12 @@ describe('Email DAO integration tests', function() { inbox.messages.sort(function(a, b) { return a.uid - b.uid; }); + + // phantomjs is really slow, so setting the tcp socket timeouts to 200s will effectively disarm the timeout + imapClient._client.client.TIMEOUT_SOCKET_LOWER_BOUND = 999999999; + imapClient._listeningClient.client.TIMEOUT_SOCKET_LOWER_BOUND = 999999999; + smtpClient.TIMEOUT_SOCKET_LOWER_BOUND = 999999999; + done(); };