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/videos-views-cleaner.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'server/tests/api/videos/videos-views-cleaner.ts') diff --git a/server/tests/api/videos/videos-views-cleaner.ts b/server/tests/api/videos/videos-views-cleaner.ts index 4001969c3..80cecdd23 100644 --- a/server/tests/api/videos/videos-views-cleaner.ts +++ b/server/tests/api/videos/videos-views-cleaner.ts @@ -7,7 +7,7 @@ import { flushTests, killallServers, reRunServer, - runServer, + flushAndRunServer, ServerInfo, setAccessTokensToServers, uploadVideo, uploadVideoAndGetId, viewVideo, wait, countVideoViewsOf, doubleFollow, waitJobs @@ -27,8 +27,6 @@ describe('Test video views cleaner', function () { before(async function () { this.timeout(50000) - await flushTests() - servers = await flushAndRunMultipleServers(2) await setAccessTokensToServers(servers) @@ -102,12 +100,7 @@ describe('Test video views cleaner', function () { } }) - after(async function () { + after(function () { killallServers(servers) - - // Keep the logs if the test failed - if (this['ok']) { - await flushTests() - } }) }) -- cgit v1.2.3