aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/miscs
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-02-03 09:33:05 +0100
committerChocobozzz <me@florianbigard.com>2021-02-03 09:45:08 +0100
commitba5a8d89bbf049e4afc41543bcc072cccdb02669 (patch)
tree6cc6b2dca17745cc0824c7ad4515f3bc4883fa4a /shared/extra-utils/miscs
parent29f148a61381727a432c22a71c7a2b7cc23d9c9e (diff)
downloadPeerTube-ba5a8d89bbf049e4afc41543bcc072cccdb02669.tar.gz
PeerTube-ba5a8d89bbf049e4afc41543bcc072cccdb02669.tar.zst
PeerTube-ba5a8d89bbf049e4afc41543bcc072cccdb02669.zip
Update server dependencies
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