get rid of mail queue

this prevents us from returning mail errors synchronously
This commit is contained in:
Girish Ramakrishnan
2019-04-15 16:36:37 -07:00
parent e23fd5e3c5
commit fa5415b1eb
6 changed files with 61 additions and 92 deletions

View File

@@ -36,8 +36,6 @@ describe('Profile API', function () {
server.start(function (error) {
expect(!error).to.be.ok();
mailer._clearMailQueue();
database._clear(function (error) {
expect(error).to.eql(null);
@@ -61,7 +59,7 @@ describe('Profile API', function () {
database._clear(function (error) {
expect(!error).to.be.ok();
mailer._clearMailQueue();
mailer._mailQueue = [];
server.stop(done);
});