From d932d3db56ae06e48a0a03af934c3232c8da89f5 Mon Sep 17 00:00:00 2001 From: Ross Johnson Date: Sat, 6 Jul 2013 10:05:44 -0500 Subject: [PATCH] Fix crashing fetch tests by setting keepalive = false When keepalive = true (the default), additional IDLE requests are sent to the IMAP server. The mock IMAP servers in the tests are not set up to respond to the IDLE request. --- test/test-connection-fetch-dup.js | 3 ++- test/test-connection-fetch-frag.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/test-connection-fetch-dup.js b/test/test-connection-fetch-dup.js index ff54abb..9344d85 100644 --- a/test/test-connection-fetch-dup.js +++ b/test/test-connection-fetch-dup.js @@ -53,7 +53,8 @@ srv.listen(0, '127.0.0.1', function() { user: 'foo', password: 'bar', host: '127.0.0.1', - port: port + port: port, + keepalive: false }); imap.on('ready', function() { imap.openBox('INBOX', true, function() { diff --git a/test/test-connection-fetch-frag.js b/test/test-connection-fetch-frag.js index 46341ea..b05a15a 100644 --- a/test/test-connection-fetch-frag.js +++ b/test/test-connection-fetch-frag.js @@ -53,7 +53,8 @@ srv.listen(0, '127.0.0.1', function() { user: 'foo', password: 'bar', host: '127.0.0.1', - port: port + port: port, + keepalive: false }); imap.on('ready', function() { imap.openBox('INBOX', true, function() {