From 9f430a53be016f8db2736d5d8111282660b50f4c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 12 Oct 2021 09:18:54 +0200 Subject: Fix bitrate tests --- server/tests/api/videos/video-transcoder.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'server/tests/api/videos/video-transcoder.ts') diff --git a/server/tests/api/videos/video-transcoder.ts b/server/tests/api/videos/video-transcoder.ts index 2b49176b2..21609fd82 100644 --- a/server/tests/api/videos/video-transcoder.ts +++ b/server/tests/api/videos/video-transcoder.ts @@ -11,7 +11,6 @@ import { doubleFollow, generateHighBitrateVideo, generateVideoWithFramerate, - getFileSize, makeGetRequest, PeerTubeServer, setAccessTokensToServers, @@ -617,8 +616,8 @@ describe('Test video transcoding', function () { const file = video.files.find(f => f.resolution.id === r) const path = servers[1].servers.buildWebTorrentFilePath(file.fileUrl) - const size = await getFileSize(path) - expect(size, `${path} not below ${60_000}`).to.be.below(60_000) + const bitrate = await getVideoFileBitrate(path) + expect(bitrate, `${path} not below ${60_000}`).to.be.below(60_000) } }) }) -- cgit v1.2.3