Skip to content

Commit

Permalink
Fix wrong assumption in test
Browse files Browse the repository at this point in the history
  • Loading branch information
mofux committed Oct 8, 2017
1 parent 21ba4bb commit 5e41129
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/5-api-send.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

}

Expand Down

0 comments on commit 5e41129

Please sign in to comment.