From 5e41129815a931519e43569760969866ae3a7551 Mon Sep 17 00:00:00 2001 From: Thomas Zilz Date: Sun, 8 Oct 2017 14:36:26 +0200 Subject: [PATCH] Fix wrong assumption in test --- test/5-api-send.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/5-api-send.js b/test/5-api-send.js index c4885e8..a21ac82 100644 --- a/test/5-api-send.js +++ b/test/5-api-send.js @@ -78,11 +78,8 @@ module.exports = function () { received = received.concat(req.session.envelope.to); should(req.session.envelope.from).equal('user@remote'); should(req.session.envelope.to.length).equal(1); - localhost.getConnections((err, count) => { - res.accept(); - should(count).equal(2); - if (received.length === 2) return done(err); - }); + res.accept(); + if (received.length === 2) return done(); }