aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api')
-rw-r--r--server/tests/api/config.ts10
1 files changed, 6 insertions, 4 deletions
diff --git a/server/tests/api/config.ts b/server/tests/api/config.ts
index 3dda3b4d7..72a9e5679 100644
--- a/server/tests/api/config.ts
+++ b/server/tests/api/config.ts
@@ -15,7 +15,7 @@ describe('Test config', function () {
15 let server = null 15 let server = null
16 16
17 before(async function () { 17 before(async function () {
18 this.timeout(120000) 18 this.timeout(10000)
19 19
20 await flushTests() 20 await flushTests()
21 server = await runServer(1) 21 server = await runServer(1)
@@ -29,9 +29,11 @@ describe('Test config', function () {
29 }) 29 })
30 30
31 it('Should have a correct config on a server with registration enabled and a users limit', async function () { 31 it('Should have a correct config on a server with registration enabled and a users limit', async function () {
32 await registerUser(server.url, 'user1', 'super password') 32 await Promise.all([
33 await registerUser(server.url, 'user2', 'super password') 33 registerUser(server.url, 'user1', 'super password'),
34 await registerUser(server.url, 'user3', 'super password') 34 registerUser(server.url, 'user2', 'super password'),
35 registerUser(server.url, 'user3', 'super password')
36 ])
35 37
36 const res = await getConfig(server.url) 38 const res = await getConfig(server.url)
37 const data = res.body 39 const data = res.body