diff options
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 | }) |