From fb72d2e1c24cd4660fd6611ef723c5827c47294c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 7 Sep 2021 15:16:26 +0200 Subject: Fix infohash with object storage --- server/tests/api/videos/video-hls.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'server/tests/api/videos') diff --git a/server/tests/api/videos/video-hls.ts b/server/tests/api/videos/video-hls.ts index 4685bf3b6..91124725f 100644 --- a/server/tests/api/videos/video-hls.ts +++ b/server/tests/api/videos/video-hls.ts @@ -14,6 +14,7 @@ import { createMultipleServers, doubleFollow, expectStartWith, + hlsInfohashExist, makeRawRequest, ObjectStorageCommand, PeerTubeServer, @@ -88,9 +89,15 @@ async function checkHlsPlaylist (options: { const masterPlaylist = await server.streamingPlaylists.get({ url: hlsPlaylist.playlistUrl }) + let i = 0 for (const resolution of resolutions) { expect(masterPlaylist).to.contain(`${resolution}.m3u8`) expect(masterPlaylist).to.contain(`${resolution}.m3u8`) + + const url = 'http://' + videoDetails.account.host + await hlsInfohashExist(url, hlsPlaylist.playlistUrl, i) + + i++ } } -- cgit v1.2.3