aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/cli/reset-password.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/cli/reset-password.ts')
-rw-r--r--server/tests/cli/reset-password.ts8
1 files changed, 3 insertions, 5 deletions
diff --git a/server/tests/cli/reset-password.ts b/server/tests/cli/reset-password.ts
index 3c56bf45b..1d6423814 100644
--- a/server/tests/cli/reset-password.ts
+++ b/server/tests/cli/reset-password.ts
@@ -7,7 +7,7 @@ import {
7 getEnvCli, 7 getEnvCli,
8 killallServers, 8 killallServers,
9 login, 9 login,
10 runServer, 10 flushAndRunServer,
11 ServerInfo, 11 ServerInfo,
12 setAccessTokensToServers 12 setAccessTokensToServers
13} from '../../../shared/extra-utils' 13} from '../../../shared/extra-utils'
@@ -17,9 +17,7 @@ describe('Test reset password scripts', function () {
17 17
18 before(async function () { 18 before(async function () {
19 this.timeout(30000) 19 this.timeout(30000)
20 20 server = await flushAndRunServer(1)
21 await flushTests()
22 server = await runServer(1)
23 await setAccessTokensToServers([ server ]) 21 await setAccessTokensToServers([ server ])
24 22
25 await createUser({ url: server.url, accessToken: server.accessToken, username: 'user_1', password: 'super password' }) 23 await createUser({ url: server.url, accessToken: server.accessToken, username: 'user_1', password: 'super password' })
@@ -34,7 +32,7 @@ describe('Test reset password scripts', function () {
34 await login(server.url, server.client, { username: 'user_1', password: 'coucou' }, 200) 32 await login(server.url, server.client, { username: 'user_1', password: 'coucou' }, 200)
35 }) 33 })
36 34
37 after(async function () { 35 after(function () {
38 killallServers([ server ]) 36 killallServers([ server ])
39 }) 37 })
40}) 38})