diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2018-11-14 15:27:47 +0100 |
---|---|---|
committer | Rigel Kent <par@rigelk.eu> | 2018-11-14 15:59:56 +0100 |
commit | b83b8dd5aef03084133c5983de6f312e7d1654b8 (patch) | |
tree | 4daf0f5f10dac8b1c5704d9823b734aa1051d99a /server/tests/utils | |
parent | fb651cf2d426e7429a7c571ab7d93becd63ad116 (diff) | |
download | PeerTube-b83b8dd5aef03084133c5983de6f312e7d1654b8.tar.gz PeerTube-b83b8dd5aef03084133c5983de6f312e7d1654b8.tar.zst PeerTube-b83b8dd5aef03084133c5983de6f312e7d1654b8.zip |
add cli option to run without client
Diffstat (limited to 'server/tests/utils')
-rw-r--r-- | server/tests/utils/server/servers.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/utils/server/servers.ts b/server/tests/utils/server/servers.ts index 3c946db27..f358a21f1 100644 --- a/server/tests/utils/server/servers.ts +++ b/server/tests/utils/server/servers.ts | |||
@@ -69,7 +69,7 @@ function flushTests () { | |||
69 | }) | 69 | }) |
70 | } | 70 | } |
71 | 71 | ||
72 | function runServer (serverNumber: number, configOverride?: Object) { | 72 | function runServer (serverNumber: number, configOverride?: Object, args = []) { |
73 | const server: ServerInfo = { | 73 | const server: ServerInfo = { |
74 | app: null, | 74 | app: null, |
75 | serverNumber: serverNumber, | 75 | serverNumber: serverNumber, |
@@ -115,7 +115,7 @@ function runServer (serverNumber: number, configOverride?: Object) { | |||
115 | } | 115 | } |
116 | 116 | ||
117 | return new Promise<ServerInfo>(res => { | 117 | return new Promise<ServerInfo>(res => { |
118 | server.app = fork(join(__dirname, '..', '..', '..', '..', 'dist', 'server.js'), [], options) | 118 | server.app = fork(join(__dirname, '..', '..', '..', '..', 'dist', 'server.js'), args, options) |
119 | server.app.stdout.on('data', function onStdout (data) { | 119 | server.app.stdout.on('data', function onStdout (data) { |
120 | let dontContinue = false | 120 | let dontContinue = false |
121 | 121 | ||