diff options
author | Chocobozzz <me@florianbigard.com> | 2019-04-24 15:10:37 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-24 16:26:25 +0200 |
commit | 7c3b79768bd174b22154e8d2df0b1211e01ee56a (patch) | |
tree | 9e45c9302083f0438f7ea174f5fb7d6042be5712 /server/tests/cli/reset-password.ts | |
parent | 913b1d71e630d5a959c763bf565a171b4dc61434 (diff) | |
download | PeerTube-7c3b79768bd174b22154e8d2df0b1211e01ee56a.tar.gz PeerTube-7c3b79768bd174b22154e8d2df0b1211e01ee56a.tar.zst PeerTube-7c3b79768bd174b22154e8d2df0b1211e01ee56a.zip |
Use test wrapper exit function
Diffstat (limited to 'server/tests/cli/reset-password.ts')
-rw-r--r-- | server/tests/cli/reset-password.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/server/tests/cli/reset-password.ts b/server/tests/cli/reset-password.ts index 1d6423814..6abb6738f 100644 --- a/server/tests/cli/reset-password.ts +++ b/server/tests/cli/reset-password.ts | |||
@@ -1,13 +1,12 @@ | |||
1 | import 'mocha' | 1 | import 'mocha' |
2 | 2 | ||
3 | import { | 3 | import { |
4 | cleanupTests, | ||
4 | createUser, | 5 | createUser, |
5 | execCLI, | 6 | execCLI, |
6 | flushTests, | 7 | flushAndRunServer, |
7 | getEnvCli, | 8 | getEnvCli, |
8 | killallServers, | ||
9 | login, | 9 | login, |
10 | flushAndRunServer, | ||
11 | ServerInfo, | 10 | ServerInfo, |
12 | setAccessTokensToServers | 11 | setAccessTokensToServers |
13 | } from '../../../shared/extra-utils' | 12 | } from '../../../shared/extra-utils' |
@@ -32,7 +31,7 @@ describe('Test reset password scripts', function () { | |||
32 | await login(server.url, server.client, { username: 'user_1', password: 'coucou' }, 200) | 31 | await login(server.url, server.client, { username: 'user_1', password: 'coucou' }, 200) |
33 | }) | 32 | }) |
34 | 33 | ||
35 | after(function () { | 34 | after(async function () { |
36 | killallServers([ server ]) | 35 | await cleanupTests([ server ]) |
37 | }) | 36 | }) |
38 | }) | 37 | }) |