mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 10:19:35 +02:00
Fix bitrate tests
This commit is contained in:
parent
41085b1583
commit
9f430a53be
4 changed files with 17 additions and 11 deletions
|
@ -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)
|
||||
}
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue