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/api/users/users.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/api/users/users.ts')
-rw-r--r-- | server/tests/api/users/users.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/server/tests/api/users/users.ts b/server/tests/api/users/users.ts index 8efff12ad..e7291740b 100644 --- a/server/tests/api/users/users.ts +++ b/server/tests/api/users/users.ts | |||
@@ -5,9 +5,10 @@ import 'mocha' | |||
5 | import { User, UserRole } from '../../../../shared/index' | 5 | import { User, UserRole } from '../../../../shared/index' |
6 | import { | 6 | import { |
7 | blockUser, | 7 | blockUser, |
8 | cleanupTests, | ||
8 | createUser, | 9 | createUser, |
9 | deleteMe, | 10 | deleteMe, |
10 | flushTests, | 11 | flushAndRunServer, |
11 | getAccountRatings, | 12 | getAccountRatings, |
12 | getBlacklistedVideosList, | 13 | getBlacklistedVideosList, |
13 | getMyUserInformation, | 14 | getMyUserInformation, |
@@ -17,14 +18,12 @@ import { | |||
17 | getUsersList, | 18 | getUsersList, |
18 | getUsersListPaginationAndSort, | 19 | getUsersListPaginationAndSort, |
19 | getVideosList, | 20 | getVideosList, |
20 | killallServers, | ||
21 | login, | 21 | login, |
22 | makePutBodyRequest, | 22 | makePutBodyRequest, |
23 | rateVideo, | 23 | rateVideo, |
24 | registerUser, | 24 | registerUser, |
25 | removeUser, | 25 | removeUser, |
26 | removeVideo, | 26 | removeVideo, |
27 | flushAndRunServer, | ||
28 | ServerInfo, | 27 | ServerInfo, |
29 | testImage, | 28 | testImage, |
30 | unblockUser, | 29 | unblockUser, |
@@ -677,7 +676,7 @@ describe('Test users', function () { | |||
677 | }) | 676 | }) |
678 | }) | 677 | }) |
679 | 678 | ||
680 | after(function () { | 679 | after(async function () { |
681 | killallServers([ server ]) | 680 | await cleanupTests([ server ]) |
682 | }) | 681 | }) |
683 | }) | 682 | }) |