aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-09-14 09:58:49 +0200
committerChocobozzz <me@florianbigard.com>2018-09-14 09:58:49 +0200
commitd5f044cef285e922244bef7851dbbc12a61ec11f (patch)
tree7d51256dc691957920c9c4c1d75491c71db4002a /server/tests
parentb36f41ca09e92ecb30d367d91d1089a23d10d585 (diff)
downloadPeerTube-d5f044cef285e922244bef7851dbbc12a61ec11f.tar.gz
PeerTube-d5f044cef285e922244bef7851dbbc12a61ec11f.tar.zst
PeerTube-d5f044cef285e922244bef7851dbbc12a61ec11f.zip
Test to remove delay in tests when running multiple servers
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/utils/server/servers.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/server/tests/utils/server/servers.ts b/server/tests/utils/server/servers.ts
index e95be4a16..26ab4e1bb 100644
--- a/server/tests/utils/server/servers.ts
+++ b/server/tests/utils/server/servers.ts
@@ -51,10 +51,7 @@ function flushAndRunMultipleServers (totalServers: number, configOverride?: Obje
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, configOverride).then(app => anotherServerDone(j, app))
57 }, 1000 * (j - 1))
58 } 55 }
59 }) 56 })
60 }) 57 })