aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/server-commands/server/servers.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/server-commands/server/servers.ts')
-rw-r--r--shared/server-commands/server/servers.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/server-commands/server/servers.ts b/shared/server-commands/server/servers.ts
index 29f01774d..b2b61adb3 100644
--- a/shared/server-commands/server/servers.ts
+++ b/shared/server-commands/server/servers.ts
@@ -2,7 +2,7 @@ import { ensureDir } from 'fs-extra'
2import { isGithubCI } from '@shared/core-utils' 2import { isGithubCI } from '@shared/core-utils'
3import { PeerTubeServer, RunServerOptions } from './server' 3import { PeerTubeServer, RunServerOptions } from './server'
4 4
5async function createSingleServer (serverNumber: number, configOverride?: Object, 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, options) 8 await server.flushAndRun(configOverride, options)
@@ -10,7 +10,7 @@ async function createSingleServer (serverNumber: number, configOverride?: Object
10 return server 10 return server
11} 11}
12 12
13function createMultipleServers (totalServers: number, configOverride?: Object, options: RunServerOptions = {}) { 13function createMultipleServers (totalServers: number, configOverride?: object, options: RunServerOptions = {}) {
14 const serverPromises: Promise<PeerTubeServer>[] = [] 14 const serverPromises: Promise<PeerTubeServer>[] = []
15 15
16 for (let i = 1; i <= totalServers; i++) { 16 for (let i = 1; i <= totalServers; i++) {