aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/shared/streaming-playlists.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-12-30 15:28:49 +0100
committerChocobozzz <me@florianbigard.com>2022-12-30 15:28:49 +0100
commit9972ace3a3bc65865fb3aaaa865a400386e49252 (patch)
tree7bd9a0b40311145c942b0cbf2fbcf58a58f9eca5 /server/tests/shared/streaming-playlists.ts
parent75ec2580484d2fa2d6d21a062ddb33ffea9ab046 (diff)
parentfbe088b816c6e33e013006285e18bc2938173507 (diff)
downloadPeerTube-9972ace3a3bc65865fb3aaaa865a400386e49252.tar.gz
PeerTube-9972ace3a3bc65865fb3aaaa865a400386e49252.tar.zst
PeerTube-9972ace3a3bc65865fb3aaaa865a400386e49252.zip
Merge branch 'release/5.0.0' into develop
Diffstat (limited to 'server/tests/shared/streaming-playlists.ts')
-rw-r--r--server/tests/shared/streaming-playlists.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/tests/shared/streaming-playlists.ts b/server/tests/shared/streaming-playlists.ts
index 5c62af812..75e135c4e 100644
--- a/server/tests/shared/streaming-playlists.ts
+++ b/server/tests/shared/streaming-playlists.ts
@@ -40,6 +40,8 @@ async function checkSegmentHash (options: {
40 expect(sha256(segmentBody)).to.equal(shaBody[videoName][range]) 40 expect(sha256(segmentBody)).to.equal(shaBody[videoName][range])
41} 41}
42 42
43// ---------------------------------------------------------------------------
44
43async function checkLiveSegmentHash (options: { 45async function checkLiveSegmentHash (options: {
44 server: PeerTubeServer 46 server: PeerTubeServer
45 baseUrlSegment: string 47 baseUrlSegment: string
@@ -56,6 +58,8 @@ async function checkLiveSegmentHash (options: {
56 expect(sha256(segmentBody)).to.equal(shaBody[segmentName]) 58 expect(sha256(segmentBody)).to.equal(shaBody[segmentName])
57} 59}
58 60
61// ---------------------------------------------------------------------------
62
59async function checkResolutionsInMasterPlaylist (options: { 63async function checkResolutionsInMasterPlaylist (options: {
60 server: PeerTubeServer 64 server: PeerTubeServer
61 playlistUrl: string 65 playlistUrl: string