X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fvideos%2Fvideo-playlists.ts;h=c33a63df08aa0bc8655537121f20df66e1c46f26;hb=b0185d7351f71bbc5ccbeed5bba86a619a7de70b;hp=71ca3e63ab6ab61e0e46a6668a38aaea4186345f;hpb=254d3579f5338f5fd775c17d15cdfc37078bcfb4;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/videos/video-playlists.ts b/server/tests/api/videos/video-playlists.ts index 71ca3e63a..c33a63df0 100644 --- a/server/tests/api/videos/video-playlists.ts +++ b/server/tests/api/videos/video-playlists.ts @@ -2,21 +2,10 @@ import 'mocha' import * as chai from 'chai' -import { HttpStatusCode } from '@shared/core-utils' -import { - checkPlaylistFilesWereRemoved, - cleanupTests, - doubleFollow, - createMultipleServers, - PlaylistsCommand, - PeerTubeServer, - 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, VideoPlaylistCreateResult, VideoPlaylistElementType, @@ -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])