]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/config.ts
First step upload with new design
[github/Chocobozzz/PeerTube.git] / server / tests / api / config.ts
index 3dda3b4d7fe3704f25e6d521d101bedb1fc185f5..61ae579777e19b185db2636700462952678724de 100644 (file)
@@ -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