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.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/tests/shared/streaming-playlists.ts b/server/tests/shared/streaming-playlists.ts
index acfb2b408..e4f88bc25 100644
--- a/server/tests/shared/streaming-playlists.ts
+++ b/server/tests/shared/streaming-playlists.ts
@@ -51,12 +51,13 @@ async function checkLiveSegmentHash (options: {
51 videoUUID: string 51 videoUUID: string
52 segmentName: string 52 segmentName: string
53 hlsPlaylist: VideoStreamingPlaylist 53 hlsPlaylist: VideoStreamingPlaylist
54 withRetry?: boolean
54}) { 55}) {
55 const { server, baseUrlSegment, videoUUID, segmentName, hlsPlaylist } = options 56 const { server, baseUrlSegment, videoUUID, segmentName, hlsPlaylist, withRetry = false } = options
56 const command = server.streamingPlaylists 57 const command = server.streamingPlaylists
57 58
58 const segmentBody = await command.getFragmentedSegment({ url: `${baseUrlSegment}/${videoUUID}/${segmentName}` }) 59 const segmentBody = await command.getFragmentedSegment({ url: `${baseUrlSegment}/${videoUUID}/${segmentName}`, withRetry })
59 const shaBody = await command.getSegmentSha256({ url: hlsPlaylist.segmentsSha256Url }) 60 const shaBody = await command.getSegmentSha256({ url: hlsPlaylist.segmentsSha256Url, withRetry })
60 61
61 expect(sha256(segmentBody)).to.equal(shaBody[segmentName]) 62 expect(sha256(segmentBody)).to.equal(shaBody[segmentName])
62} 63}