X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=server%2Ftests%2Fapi%2Fconfig.ts;h=61ae579777e19b185db2636700462952678724de;hb=27e1a06c331278e5d37bc5172ee7e4fc968e4b5e;hp=3dda3b4d7fe3704f25e6d521d101bedb1fc185f5;hpb=0e1dc3e7c69995c691e1dd82e3c2bc68748661ca;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/config.ts b/server/tests/api/config.ts index 3dda3b4d7..61ae57977 100644 --- a/server/tests/api/config.ts +++ b/server/tests/api/config.ts @@ -15,7 +15,7 @@ describe('Test config', function () { let server = null before(async function () { - this.timeout(120000) + this.timeout(10000) await flushTests() server = await runServer(1) @@ -29,9 +29,13 @@ describe('Test config', function () { }) it('Should have a correct config on a server with registration enabled and a users limit', async function () { - await registerUser(server.url, 'user1', 'super password') - await registerUser(server.url, 'user2', 'super password') - await registerUser(server.url, 'user3', 'super password') + this.timeout(5000) + + await Promise.all([ + registerUser(server.url, 'user1', 'super password'), + registerUser(server.url, 'user2', 'super password'), + registerUser(server.url, 'user3', 'super password') + ]) const res = await getConfig(server.url) const data = res.body