From 3cd0734fd9b0ff21aaef02317a874e8f1c06e027 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 13 Jun 2018 10:06:50 +0200 Subject: Improve tests when waiting pending jobs --- server/tests/api/videos/video-nsfw.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 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 a8f152561..6af0ca8af 100644 --- a/server/tests/api/videos/video-nsfw.ts +++ b/server/tests/api/videos/video-nsfw.ts @@ -8,12 +8,15 @@ import { createUser } from '../../utils/users/users' import { getMyVideos } from '../../utils/videos/videos' import { getAccountVideos, - getConfig, getCustomConfig, - getMyUserInformation, getVideoChannelVideos, + getConfig, + getCustomConfig, + getMyUserInformation, + getVideoChannelVideos, getVideosListWithToken, runServer, searchVideo, - searchVideoWithToken, updateCustomConfig, + searchVideoWithToken, + updateCustomConfig, updateMyUser } from '../../utils' import { ServerConfig } from '../../../../shared/models' @@ -201,10 +204,5 @@ describe('Test video NSFW policy', function () { after(async function () { killallServers([ server ]) - - // Keep the logs if the test failed - if (this['ok']) { - await flushTests() - } }) }) -- cgit v1.2.3