X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fvideos%2Faudio-only.ts;h=f12d730ccf9fd53f8775c349a26d5f0bcee032e1;hb=fe98765624cdd6695739bda719fcb726b71c2b2a;hp=1ccae4351703beeac2fb535972014f587602d846;hpb=3a149e9f8b2e99507c72792b80cee3a90df003b2;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/videos/audio-only.ts b/server/tests/api/videos/audio-only.ts index 1ccae4351..f12d730cc 100644 --- a/server/tests/api/videos/audio-only.ts +++ b/server/tests/api/videos/audio-only.ts @@ -22,7 +22,7 @@ import { VideoDetails } from '../../../../shared/models/videos' import { VideoStreamingPlaylistType } from '../../../../shared/models/videos/video-streaming-playlist.type' import { join } from 'path' import { DEFAULT_AUDIO_RESOLUTION } from '../../../initializers/constants' -import { getVideoFileBitrate, getVideoFileFPS, getVideoFileResolution, audio, getVideoFileSize } from '@server/helpers/ffmpeg-utils' +import { getVideoFileBitrate, getVideoFileFPS, getVideoFileResolution, audio, getVideoStreamSize } from '@server/helpers/ffmpeg-utils' const expect = chai.expect @@ -65,7 +65,7 @@ describe('Test audio only video transcoding', function () { it('Should upload a video and transcode it', async function () { this.timeout(120000) - const resUpload = await uploadVideo(servers[0].url, servers[0].accessToken, { name: 'audio only'}) + const resUpload = await uploadVideo(servers[0].url, servers[0].accessToken, { name: 'audio only' }) videoUUID = resUpload.body.video.uuid await waitJobs(servers) @@ -96,7 +96,7 @@ describe('Test audio only video transcoding', function () { expect(audioStream[ 'codec_name' ]).to.be.equal('aac') expect(audioStream[ 'bit_rate' ]).to.be.at.most(384 * 8000) - const size = await getVideoFileSize(path) + const size = await getVideoStreamSize(path) expect(size.height).to.equal(0) expect(size.width).to.equal(0) }