1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 17:59:37 +02:00

Try to have more robust live tests

This commit is contained in:
Chocobozzz 2023-05-10 09:28:42 +02:00
parent 9d1e41e8bb
commit 5170f492b9
No known key found for this signature in database
GPG key ID: 583A612D890159BE
5 changed files with 67 additions and 25 deletions

View file

@ -226,7 +226,7 @@ function runTests (objectStorage: boolean) {
const resolutions = hlsPlaylist.files.map(f => f.resolution.id)
await checkResolutionsInMasterPlaylist({ server: servers[0], playlistUrl: hlsPlaylist.playlistUrl, resolutions })
const shaBody = await servers[0].streamingPlaylists.getSegmentSha256({ url: hlsPlaylist.segmentsSha256Url })
const shaBody = await servers[0].streamingPlaylists.getSegmentSha256({ url: hlsPlaylist.segmentsSha256Url, withRetry: true })
expect(Object.keys(shaBody)).to.have.lengthOf(5)
}
}