diff options
Diffstat (limited to 'server/tests/api/videos/video-nsfw.ts')
-rw-r--r-- | server/tests/api/videos/video-nsfw.ts | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/server/tests/api/videos/video-nsfw.ts b/server/tests/api/videos/video-nsfw.ts index 811705212..ad6a4b43f 100644 --- a/server/tests/api/videos/video-nsfw.ts +++ b/server/tests/api/videos/video-nsfw.ts | |||
@@ -2,25 +2,18 @@ | |||
2 | 2 | ||
3 | import * as chai from 'chai' | 3 | import * as chai from 'chai' |
4 | import 'mocha' | 4 | import 'mocha' |
5 | import { | 5 | import { cleanupTests, getVideosList, ServerInfo, setAccessTokensToServers, uploadVideo } from '../../../../shared/extra-utils/index' |
6 | flushTests, | ||
7 | getVideosList, | ||
8 | killallServers, | ||
9 | ServerInfo, | ||
10 | setAccessTokensToServers, | ||
11 | uploadVideo | ||
12 | } from '../../../../shared/extra-utils/index' | ||
13 | import { userLogin } from '../../../../shared/extra-utils/users/login' | 6 | import { userLogin } from '../../../../shared/extra-utils/users/login' |
14 | import { createUser } from '../../../../shared/extra-utils/users/users' | 7 | import { createUser } from '../../../../shared/extra-utils/users/users' |
15 | import { getMyVideos } from '../../../../shared/extra-utils/videos/videos' | 8 | import { getMyVideos } from '../../../../shared/extra-utils/videos/videos' |
16 | import { | 9 | import { |
10 | flushAndRunServer, | ||
17 | getAccountVideos, | 11 | getAccountVideos, |
18 | getConfig, | 12 | getConfig, |
19 | getCustomConfig, | 13 | getCustomConfig, |
20 | getMyUserInformation, | 14 | getMyUserInformation, |
21 | getVideoChannelVideos, | 15 | getVideoChannelVideos, |
22 | getVideosListWithToken, | 16 | getVideosListWithToken, |
23 | flushAndRunServer, | ||
24 | searchVideo, | 17 | searchVideo, |
25 | searchVideoWithToken, | 18 | searchVideoWithToken, |
26 | updateCustomConfig, | 19 | updateCustomConfig, |
@@ -241,7 +234,7 @@ describe('Test video NSFW policy', function () { | |||
241 | }) | 234 | }) |
242 | }) | 235 | }) |
243 | 236 | ||
244 | after(function () { | 237 | after(async function () { |
245 | killallServers([ server ]) | 238 | await cleanupTests([ server ]) |
246 | }) | 239 | }) |
247 | }) | 240 | }) |