diff options
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/api/config.ts | 10 | ||||
-rw-r--r-- | server/tests/utils/index.ts | 2 |
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' | |||
3 | export * from './config' | 3 | export * from './config' |
4 | export * from './login' | 4 | export * from './login' |
5 | export * from './miscs' | 5 | export * from './miscs' |
6 | export * from './pods' | 6 | export * from './follows' |
7 | export * from './request-schedulers' | 7 | export * from './request-schedulers' |
8 | export * from './requests' | 8 | export * from './requests' |
9 | export * from './servers' | 9 | export * from './servers' |