aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/utils
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2018-11-14 15:27:47 +0100
committerRigel Kent <par@rigelk.eu>2018-11-14 15:59:56 +0100
commitb83b8dd5aef03084133c5983de6f312e7d1654b8 (patch)
tree4daf0f5f10dac8b1c5704d9823b734aa1051d99a /server/tests/utils
parentfb651cf2d426e7429a7c571ab7d93becd63ad116 (diff)
downloadPeerTube-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.ts4
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
72function runServer (serverNumber: number, configOverride?: Object) { 72function 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