X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fcli%2Fupdate-host.ts;h=7c49efd20767497550b9cf6ff5496d3fddbd5db5;hb=84cae54e7a2595bea0c3ea106a4d111fd11a4ec6;hp=da89ff153f68f2d2b7fa0c35d835d2ff45baad95;hpb=bf54587a3e2ad9c2c186828f2a5682b91ee2cc00;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/cli/update-host.ts b/server/tests/cli/update-host.ts index da89ff153..7c49efd20 100644 --- a/server/tests/cli/update-host.ts +++ b/server/tests/cli/update-host.ts @@ -12,6 +12,7 @@ import { setAccessTokensToServers, waitJobs } from '@shared/server-commands' +import { getAllFiles } from '../shared' describe('Test update host scripts', function () { let server: PeerTubeServer @@ -108,7 +109,7 @@ describe('Test update host scripts', function () { for (const video of data) { const videoDetails = await server.videos.get({ id: video.id }) - const files = videoDetails.files.concat(videoDetails.streamingPlaylists[0].files) + const files = getAllFiles(videoDetails) expect(files).to.have.lengthOf(8)