aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/shared/streaming-playlists.ts
diff options
context:
space:
mode:
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