aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/miscs
diff options
context:
space:
mode:
Diffstat (limited to 'shared/extra-utils/miscs')
-rw-r--r--shared/extra-utils/miscs/email.ts5
1 files changed, 3 insertions, 2 deletions
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 @@
1import { ChildProcess, fork } from 'child_process' 1import { ChildProcess, fork } from 'child_process'
2import { join } from 'path'
2import { randomInt } from '../../core-utils/miscs/miscs' 3import { randomInt } from '../../core-utils/miscs/miscs'
3import { parallelTests } from '../server/servers' 4import { parallelTests } from '../server/servers'
4 5
@@ -10,7 +11,7 @@ class MockSmtpServer {
10 private emails: object[] 11 private emails: object[]
11 12
12 private constructor () { 13 private constructor () {
13 this.emailChildProcess = fork(`${__dirname}/email-child-process`, []) 14 this.emailChildProcess = fork(join(__dirname, 'email-child-process'), [])
14 15
15 this.emailChildProcess.on('message', (msg: any) => { 16 this.emailChildProcess.on('message', (msg: any) => {
16 if (msg.email) { 17 if (msg.email) {
@@ -27,7 +28,7 @@ class MockSmtpServer {
27 28
28 if (this.started) { 29 if (this.started) {
29 this.emails = emailsCollection 30 this.emails = emailsCollection
30 return res() 31 return res(undefined)
31 } 32 }
32 33
33 // ensure maildev isn't started until 34 // ensure maildev isn't started until