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/videos/video-nsfw.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/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 | }) |