From 73fb3dc53571a6e94750a9d6cb5c2e949e1adcb9 Mon Sep 17 00:00:00 2001 From: Wicklow Date: Tue, 7 Mar 2023 10:52:20 +0100 Subject: Fix file token reinjection on fragments --- server/tests/shared/streaming-playlists.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/tests/shared') diff --git a/server/tests/shared/streaming-playlists.ts b/server/tests/shared/streaming-playlists.ts index 75e135c4e..1c38cb512 100644 --- a/server/tests/shared/streaming-playlists.ts +++ b/server/tests/shared/streaming-playlists.ts @@ -214,7 +214,7 @@ async function checkVideoFileTokenReinjection (options: { ? i : `-${resolution}` - expect(text).to.contain(`${suffix}.m3u8?videoFileToken=${videoFileToken}`) + expect(text).to.contain(`${suffix}.m3u8?videoFileToken=${videoFileToken}&reinjectVideoFileToken=true`) } const resolutionPlaylists = extractResolutionPlaylistUrls(hls.playlistUrl, text) @@ -228,6 +228,7 @@ async function checkVideoFileTokenReinjection (options: { : '.mp4' expect(text).to.contain(`${extension}?videoFileToken=${videoFileToken}`) + expect(text).not.to.contain(`reinjectVideoFileToken=true`) } } -- cgit v1.2.3