X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fcheck-params%2Fvideo-blacklist.ts;h=6466888fb5386623139f645f0c7701666591e5ac;hb=d7a25329f9e607894d29ab342b9cb66638b56dc0;hp=81423aee9044c0307d43d23c1e9f8d99ca7d2327;hpb=1eddc9a74f9a80fa5d0cb25fceb3fc47a1a3c14a;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/check-params/video-blacklist.ts b/server/tests/api/check-params/video-blacklist.ts index 81423aee9..6466888fb 100644 --- a/server/tests/api/check-params/video-blacklist.ts +++ b/server/tests/api/check-params/video-blacklist.ts @@ -3,6 +3,7 @@ import 'mocha' import { + cleanupTests, createUser, doubleFollow, flushAndRunMultipleServers, @@ -18,12 +19,12 @@ import { setAccessTokensToServers, uploadVideo, userLogin, waitJobs -} from '../../../../shared/utils' +} from '../../../../shared/extra-utils' import { checkBadCountPagination, checkBadSortPagination, checkBadStartPagination -} from '../../../../shared/utils/requests/check-api-params' +} from '../../../../shared/extra-utils/requests/check-api-params' import { VideoDetails, VideoBlacklistType } from '../../../../shared/models/videos' import { expect } from 'chai' @@ -39,7 +40,6 @@ describe('Test video blacklist API validators', function () { before(async function () { this.timeout(120000) - await flushTests() servers = await flushAndRunMultipleServers(2) await setAccessTokensToServers(servers) @@ -249,11 +249,6 @@ describe('Test video blacklist API validators', function () { }) after(async function () { - killallServers(servers) - - // Keep the logs if the test failed - if (this['ok']) { - await flushTests() - } + await cleanupTests(servers) }) })