diff options
author | Chocobozzz <me@florianbigard.com> | 2021-09-07 15:16:26 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-09-07 15:16:26 +0200 |
commit | fb72d2e1c24cd4660fd6611ef723c5827c47294c (patch) | |
tree | c2a2991a9e6944cd3d22c87e34de096a47b8db9e /server/tests/api/videos/video-hls.ts | |
parent | 6f9719b568fad75959a1404b6927b7a278061c41 (diff) | |
download | PeerTube-fb72d2e1c24cd4660fd6611ef723c5827c47294c.tar.gz PeerTube-fb72d2e1c24cd4660fd6611ef723c5827c47294c.tar.zst PeerTube-fb72d2e1c24cd4660fd6611ef723c5827c47294c.zip |
Fix infohash with object storage
Diffstat (limited to 'server/tests/api/videos/video-hls.ts')
-rw-r--r-- | server/tests/api/videos/video-hls.ts | 7 |
1 files changed, 7 insertions, 0 deletions
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 { | |||
14 | createMultipleServers, | 14 | createMultipleServers, |
15 | doubleFollow, | 15 | doubleFollow, |
16 | expectStartWith, | 16 | expectStartWith, |
17 | hlsInfohashExist, | ||
17 | makeRawRequest, | 18 | makeRawRequest, |
18 | ObjectStorageCommand, | 19 | ObjectStorageCommand, |
19 | PeerTubeServer, | 20 | PeerTubeServer, |
@@ -88,9 +89,15 @@ async function checkHlsPlaylist (options: { | |||
88 | 89 | ||
89 | const masterPlaylist = await server.streamingPlaylists.get({ url: hlsPlaylist.playlistUrl }) | 90 | const masterPlaylist = await server.streamingPlaylists.get({ url: hlsPlaylist.playlistUrl }) |
90 | 91 | ||
92 | let i = 0 | ||
91 | for (const resolution of resolutions) { | 93 | for (const resolution of resolutions) { |
92 | expect(masterPlaylist).to.contain(`${resolution}.m3u8`) | 94 | expect(masterPlaylist).to.contain(`${resolution}.m3u8`) |
93 | expect(masterPlaylist).to.contain(`${resolution}.m3u8`) | 95 | expect(masterPlaylist).to.contain(`${resolution}.m3u8`) |
96 | |||
97 | const url = 'http://' + videoDetails.account.host | ||
98 | await hlsInfohashExist(url, hlsPlaylist.playlistUrl, i) | ||
99 | |||
100 | i++ | ||
94 | } | 101 | } |
95 | } | 102 | } |
96 | 103 | ||