diff options
author | Chocobozzz <me@florianbigard.com> | 2021-02-03 09:33:05 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-02-03 09:45:08 +0100 |
commit | ba5a8d89bbf049e4afc41543bcc072cccdb02669 (patch) | |
tree | 6cc6b2dca17745cc0824c7ad4515f3bc4883fa4a /shared/extra-utils/miscs/email.ts | |
parent | 29f148a61381727a432c22a71c7a2b7cc23d9c9e (diff) | |
download | PeerTube-ba5a8d89bbf049e4afc41543bcc072cccdb02669.tar.gz PeerTube-ba5a8d89bbf049e4afc41543bcc072cccdb02669.tar.zst PeerTube-ba5a8d89bbf049e4afc41543bcc072cccdb02669.zip |
Update server dependencies
Diffstat (limited to 'shared/extra-utils/miscs/email.ts')
-rw-r--r-- | shared/extra-utils/miscs/email.ts | 5 |
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 @@ | |||
1 | import { ChildProcess, fork } from 'child_process' | 1 | import { ChildProcess, fork } from 'child_process' |
2 | import { join } from 'path' | ||
2 | import { randomInt } from '../../core-utils/miscs/miscs' | 3 | import { randomInt } from '../../core-utils/miscs/miscs' |
3 | import { parallelTests } from '../server/servers' | 4 | import { 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 |