From ba5a8d89bbf049e4afc41543bcc072cccdb02669 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 3 Feb 2021 09:33:05 +0100 Subject: Update server dependencies --- shared/extra-utils/miscs/email.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'shared/extra-utils/miscs') diff --git a/shared/extra-utils/miscs/email.ts b/shared/extra-utils/miscs/email.ts index 15d298a73..758b15b58 100644 --- a/shared/extra-utils/miscs/email.ts +++ b/shared/extra-utils/miscs/email.ts @@ -1,4 +1,5 @@ import { ChildProcess, fork } from 'child_process' +import { join } from 'path' import { randomInt } from '../../core-utils/miscs/miscs' import { parallelTests } from '../server/servers' @@ -10,7 +11,7 @@ class MockSmtpServer { private emails: object[] private constructor () { - this.emailChildProcess = fork(`${__dirname}/email-child-process`, []) + this.emailChildProcess = fork(join(__dirname, 'email-child-process'), []) this.emailChildProcess.on('message', (msg: any) => { if (msg.email) { @@ -27,7 +28,7 @@ class MockSmtpServer { if (this.started) { this.emails = emailsCollection - return res() + return res(undefined) } // ensure maildev isn't started until -- cgit v1.2.3