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/check-params/video-playlists.ts | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'server/tests/api/check-params/video-playlists.ts') diff --git a/server/tests/api/check-params/video-playlists.ts b/server/tests/api/check-params/video-playlists.ts index 0f3484763..0edb51682 100644 --- a/server/tests/api/check-params/video-playlists.ts +++ b/server/tests/api/check-params/video-playlists.ts @@ -14,7 +14,7 @@ import { makeGetRequest, removeVideoFromPlaylist, reorderVideosPlaylist, - runServer, + flushAndRunServer, ServerInfo, setAccessTokensToServers, setDefaultVideoChannel, updateVideoPlaylist, @@ -43,9 +43,7 @@ describe('Test video playlists API validator', function () { before(async function () { this.timeout(30000) - await flushTests() - - server = await runServer(1) + server = await flushAndRunServer(1) await setAccessTokensToServers([ server ]) await setDefaultVideoChannel([ server ]) @@ -670,12 +668,7 @@ describe('Test video playlists API validator', function () { }) }) - after(async function () { + after(function () { killallServers([ server ]) - - // Keep the logs if the test failed - if (this['ok']) { - await flushTests() - } }) }) -- cgit v1.2.3