]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Test to remove delay in tests when running multiple servers
authorChocobozzz <me@florianbigard.com>
Fri, 14 Sep 2018 07:58:49 +0000 (09:58 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 14 Sep 2018 07:58:49 +0000 (09:58 +0200)
server/tests/utils/server/servers.ts

index e95be4a16f0b9a50a3f25003c92309ade6f02c77..26ab4e1bb44e9f6ed063158a3c84db157dc224f5 100644 (file)
@@ -51,10 +51,7 @@ function flushAndRunMultipleServers (totalServers: number, configOverride?: Obje
     flushTests()
       .then(() => {
         for (let j = 1; j <= totalServers; j++) {
-          // For the virtual buffer
-          setTimeout(() => {
-            runServer(j, configOverride).then(app => anotherServerDone(j, app))
-          }, 1000 * (j - 1))
+          runServer(j, configOverride).then(app => anotherServerDone(j, app))
         }
       })
   })