Some fixes
This commit is contained in:
parent
640d3c2f11
commit
1270ca71f8
13 changed files with 68 additions and 73 deletions
|
@ -166,7 +166,7 @@ mailBoxServer.on('error', err => {
|
|||
log.error('Test SMTP Mailbox Server', err);
|
||||
});
|
||||
|
||||
function spawn(callback) {
|
||||
function start(callback) {
|
||||
if (config.testServer.enabled) {
|
||||
server.listen(config.testServer.port, config.testServer.host, () => {
|
||||
log.info('Test SMTP', 'Server listening on port %s', config.testServer.port);
|
||||
|
@ -194,4 +194,4 @@ function spawn(callback) {
|
|||
}
|
||||
}
|
||||
|
||||
module.exports.spawn = bluebird.promisify(spawn);
|
||||
module.exports.start = bluebird.promisify(start);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue