X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fplugins%2Fplugin-transcoding.ts;h=ecea21e694d3f3eab434481c70925df8631ecc08;hb=d5fc35c24d496b097dbe222db53355cc339d8606;hp=96ff4c2fec3eb4aa5e0be5a8c2976a1c72eca033;hpb=1896bca09e088b0da9d5e845407ecebae330618c;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/plugins/plugin-transcoding.ts b/server/tests/plugins/plugin-transcoding.ts index 96ff4c2fe..ecea21e69 100644 --- a/server/tests/plugins/plugin-transcoding.ts +++ b/server/tests/plugins/plugin-transcoding.ts @@ -44,12 +44,24 @@ function updateConf (server: ServerInfo, vodProfile: string, liveProfile: string }, webtorrent: { enabled: true + }, + resolutions: { + '240p': true, + '360p': false, + '480p': false, + '720p': true } }, live: { transcoding: { profile: liveProfile, - enabled: true + enabled: true, + resolutions: { + '240p': true, + '360p': false, + '480p': false, + '720p': true + } } } }) @@ -191,10 +203,10 @@ describe('Test transcoding plugins', function () { it('Should use the new vod encoders', async function () { this.timeout(240000) - const videoUUID = (await uploadVideoAndGetId({ server, videoName: 'video' })).uuid + const videoUUID = (await uploadVideoAndGetId({ server, videoName: 'video', fixture: 'video_short_240p.mp4' })).uuid await waitJobs([ server ]) - const path = buildServerDirectory(server, join('videos', videoUUID + '-720.mp4')) + const path = buildServerDirectory(server, join('videos', videoUUID + '-240.mp4')) const audioProbe = await getAudioStream(path) expect(audioProbe.audioStream.codec_name).to.equal('opus')