aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/server/servers.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-22 12:07:26 +0200
committerChocobozzz <me@florianbigard.com>2021-07-22 12:08:02 +0200
commit2e980ed30dc37061b467ebbb68094f830bffdb5d (patch)
tree6e79e4fce84e2faeaf44dd2b8fd95a8d26735461 /shared/extra-utils/server/servers.ts
parent7a397c7f1548750bc6c1609bcdd34d1bded9fbf7 (diff)
downloadPeerTube-2e980ed30dc37061b467ebbb68094f830bffdb5d.tar.gz
PeerTube-2e980ed30dc37061b467ebbb68094f830bffdb5d.tar.zst
PeerTube-2e980ed30dc37061b467ebbb68094f830bffdb5d.zip
Simplify createServer args
Diffstat (limited to 'shared/extra-utils/server/servers.ts')
-rw-r--r--shared/extra-utils/server/servers.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/extra-utils/server/servers.ts b/shared/extra-utils/server/servers.ts
index 87d7e9449..f0622feb0 100644
--- a/shared/extra-utils/server/servers.ts
+++ b/shared/extra-utils/server/servers.ts
@@ -2,10 +2,10 @@ import { ensureDir } from 'fs-extra'
2import { isGithubCI } from '../miscs' 2import { isGithubCI } from '../miscs'
3import { PeerTubeServer, RunServerOptions } from './server' 3import { PeerTubeServer, RunServerOptions } from './server'
4 4
5async function createSingleServer (serverNumber: number, configOverride?: Object, args = [], options: RunServerOptions = {}) { 5async function createSingleServer (serverNumber: number, configOverride?: Object, options: RunServerOptions = {}) {
6 const server = new PeerTubeServer({ serverNumber }) 6 const server = new PeerTubeServer({ serverNumber })
7 7
8 await server.flushAndRun(configOverride, args, options) 8 await server.flushAndRun(configOverride, options)
9 9
10 return server 10 return server
11} 11}