aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/api/config.ts10
-rw-r--r--server/tests/utils/index.ts2
2 files changed, 7 insertions, 5 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
diff --git a/server/tests/utils/index.ts b/server/tests/utils/index.ts
index 4325e4c94..fe6d3b041 100644
--- a/server/tests/utils/index.ts
+++ b/server/tests/utils/index.ts
@@ -3,7 +3,7 @@ export * from './clients'
3export * from './config' 3export * from './config'
4export * from './login' 4export * from './login'
5export * from './miscs' 5export * from './miscs'
6export * from './pods' 6export * from './follows'
7export * from './request-schedulers' 7export * from './request-schedulers'
8export * from './requests' 8export * from './requests'
9export * from './servers' 9export * from './servers'