1
0
Fork 0

Test to remove delay in tests when running multiple servers

This commit is contained in:
Chocobozzz 2018-09-14 09:58:49 +02:00
parent b36f41ca09
commit d5f044cef2
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View 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))
}
})
})