diff options
Diffstat (limited to 'server/tests/utils/server/servers.ts')
-rw-r--r-- | server/tests/utils/server/servers.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/server/tests/utils/server/servers.ts b/server/tests/utils/server/servers.ts index 1372c03c3..26ab4e1bb 100644 --- a/server/tests/utils/server/servers.ts +++ b/server/tests/utils/server/servers.ts | |||
@@ -35,7 +35,7 @@ interface ServerInfo { | |||
35 | } | 35 | } |
36 | } | 36 | } |
37 | 37 | ||
38 | function flushAndRunMultipleServers (totalServers) { | 38 | function flushAndRunMultipleServers (totalServers: number, configOverride?: Object) { |
39 | let apps = [] | 39 | let apps = [] |
40 | let i = 0 | 40 | let i = 0 |
41 | 41 | ||
@@ -51,10 +51,7 @@ function flushAndRunMultipleServers (totalServers) { | |||
51 | flushTests() | 51 | flushTests() |
52 | .then(() => { | 52 | .then(() => { |
53 | for (let j = 1; j <= totalServers; j++) { | 53 | for (let j = 1; j <= totalServers; j++) { |
54 | // For the virtual buffer | 54 | runServer(j, configOverride).then(app => anotherServerDone(j, app)) |
55 | setTimeout(() => { | ||
56 | runServer(j).then(app => anotherServerDone(j, app)) | ||
57 | }, 1000 * (j - 1)) | ||
58 | } | 55 | } |
59 | }) | 56 | }) |
60 | }) | 57 | }) |