remove mailer.start and stop

This commit is contained in:
Girish Ramakrishnan
2017-11-24 13:58:40 -08:00
parent a77bf54df7
commit 180a455299
5 changed files with 4 additions and 36 deletions
-1
View File
@@ -79,7 +79,6 @@ describe('digest', function () {
user.createOwner.bind(null, USER_0.username, USER_0.password, USER_0.email, USER_0.displayName, AUDIT_SOURCE),
eventlog.add.bind(null, eventlog.ACTION_UPDATE, AUDIT_SOURCE, { boxUpdateInfo: { sourceTarballUrl: 'xx', version: '1.2.3', changelog: [ 'good stuff' ] } }),
settingsdb.set.bind(null, settings.MAIL_CONFIG_KEY, JSON.stringify({ enabled: true })),
mailer.start,
mailer._clearMailQueue
], done);
});
+1 -2
View File
@@ -73,8 +73,7 @@ describe('updatechecker - box - manual (email)', function () {
user.createOwner.bind(null, USER_0.username, USER_0.password, USER_0.email, USER_0.displayName, AUDIT_SOURCE),
settings.setAutoupdatePattern.bind(null, constants.AUTOUPDATE_PATTERN_NEVER),
settingsdb.set.bind(null, settings.APPSTORE_CONFIG_KEY, JSON.stringify({ userId: 'uid', cloudronId: 'cid', token: 'token' })),
mailer._clearMailQueue,
mailer.start
mailer._clearMailQueue
], done);
});
-1
View File
@@ -73,7 +73,6 @@ function setup(done) {
async.series([
database.initialize,
database._clear,
mailer.start,
mailer._clearMailQueue
], done);
}