X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fvideos%2Fvideo-playlists.ts;h=c33a63df08aa0bc8655537121f20df66e1c46f26;hb=b0185d7351f71bbc5ccbeed5bba86a619a7de70b;hp=f42aee2ffb05a5d7d6f0d77bb2306902a5c8194c;hpb=4c7e60bc17ee5830399bac4aa273356903421b4c;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/videos/video-playlists.ts b/server/tests/api/videos/video-playlists.ts index f42aee2ff..c33a63df0 100644 --- a/server/tests/api/videos/video-playlists.ts +++ b/server/tests/api/videos/video-playlists.ts @@ -2,19 +2,8 @@ import 'mocha' import * as chai from 'chai' -import { - checkPlaylistFilesWereRemoved, - cleanupTests, - createMultipleServers, - doubleFollow, - PeerTubeServer, - PlaylistsCommand, - setAccessTokensToServers, - setDefaultVideoChannel, - testImage, - wait, - waitJobs -} from '@shared/extra-utils' +import { checkPlaylistFilesWereRemoved, testImage } from '@server/tests/shared' +import { wait } from '@shared/core-utils' import { HttpStatusCode, VideoPlaylist, @@ -24,6 +13,17 @@ import { VideoPlaylistType, VideoPrivacy } from '@shared/models' +import { + cleanupTests, + createMultipleServers, + doubleFollow, + PeerTubeServer, + PlaylistsCommand, + setAccessTokensToServers, + setDefaultAccountAvatar, + setDefaultVideoChannel, + waitJobs +} from '@shared/server-commands' const expect = chai.expect @@ -75,11 +75,16 @@ describe('Test video playlists', function () { before(async function () { this.timeout(120000) - servers = await createMultipleServers(3, { transcoding: { enabled: false } }) + servers = await createMultipleServers(3) // Get the access tokens await setAccessTokensToServers(servers) await setDefaultVideoChannel(servers) + await setDefaultAccountAvatar(servers) + + for (const server of servers) { + await server.config.disableTranscoding() + } // Server 1 and server 2 follow each other await doubleFollow(servers[0], servers[1])