aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/utils/server/servers.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-01-17 11:23:40 +0100
committerChocobozzz <me@florianbigard.com>2019-01-17 11:23:40 +0100
commitdc094603cd9eccce3243a6b6ccec3416491f59d2 (patch)
treee092a5cca50ceb7aa4b4b780cad02b7518cf2589 /shared/utils/server/servers.ts
parent17bb716bc49b30cc8f22e32f73b9b53ab9ae560d (diff)
downloadPeerTube-dc094603cd9eccce3243a6b6ccec3416491f59d2.tar.gz
PeerTube-dc094603cd9eccce3243a6b6ccec3416491f59d2.tar.zst
PeerTube-dc094603cd9eccce3243a6b6ccec3416491f59d2.zip
Fix tests
Diffstat (limited to 'shared/utils/server/servers.ts')
-rw-r--r--shared/utils/server/servers.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/shared/utils/server/servers.ts b/shared/utils/server/servers.ts
index 1e9c83c72..cb57e0a69 100644
--- a/shared/utils/server/servers.ts
+++ b/shared/utils/server/servers.ts
@@ -146,7 +146,11 @@ function runServer (serverNumber: number, configOverride?: Object, args = []) {
146 146
147 server.app.stdout.removeListener('data', onStdout) 147 server.app.stdout.removeListener('data', onStdout)
148 148
149 process.on('exit', () => process.kill(server.app.pid)) 149 process.on('exit', () => {
150 try {
151 process.kill(server.app.pid)
152 } catch { /* empty */ }
153 })
150 154
151 res(server) 155 res(server)
152 }) 156 })