From 210feb6cc484a6c5c63c98f770de34e223f944cb Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 24 Apr 2019 10:53:40 +0200 Subject: Cleanup tests --- server/tests/api/videos/video-nsfw.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'server/tests/api/videos/video-nsfw.ts') diff --git a/server/tests/api/videos/video-nsfw.ts b/server/tests/api/videos/video-nsfw.ts index 9f2d99ffe..811705212 100644 --- a/server/tests/api/videos/video-nsfw.ts +++ b/server/tests/api/videos/video-nsfw.ts @@ -20,7 +20,7 @@ import { getMyUserInformation, getVideoChannelVideos, getVideosListWithToken, - runServer, + flushAndRunServer, searchVideo, searchVideoWithToken, updateCustomConfig, @@ -64,9 +64,7 @@ describe('Test video NSFW policy', function () { before(async function () { this.timeout(50000) - - await flushTests() - server = await runServer(1) + server = await flushAndRunServer(1) // Get the access tokens await setAccessTokensToServers([ server ]) @@ -243,7 +241,7 @@ describe('Test video NSFW policy', function () { }) }) - after(async function () { + after(function () { killallServers([ server ]) }) }) -- cgit v1.2.3