aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-10-11 16:00:11 +0200
committerChocobozzz <me@florianbigard.com>2022-10-11 16:00:11 +0200
commitbbae45c32ea41ba4926b291fac5f594c94d5aa9d (patch)
tree44f0f15ea972f04a3caa9622e311621936cea7e5 /server/tests/shared
parent8c13fd744fcb1c40f705eeceb4fbf08676d7451a (diff)
downloadPeerTube-bbae45c32ea41ba4926b291fac5f594c94d5aa9d.tar.gz
PeerTube-bbae45c32ea41ba4926b291fac5f594c94d5aa9d.tar.zst
PeerTube-bbae45c32ea41ba4926b291fac5f594c94d5aa9d.zip
Fix live tests
Diffstat (limited to 'server/tests/shared')
-rw-r--r--server/tests/shared/live.ts10
1 files changed, 7 insertions, 3 deletions
diff --git a/server/tests/shared/live.ts b/server/tests/shared/live.ts
index 63f3ecfd8..da3691711 100644
--- a/server/tests/shared/live.ts
+++ b/server/tests/shared/live.ts
@@ -56,15 +56,19 @@ async function testVideoResolutions (options: {
56 for (let i = 0; i < resolutions.length; i++) { 56 for (let i = 0; i < resolutions.length; i++) {
57 const segmentNum = 3 57 const segmentNum = 3
58 const segmentName = `${i}-00000${segmentNum}.ts` 58 const segmentName = `${i}-00000${segmentNum}.ts`
59 await originServer.live.waitUntilSegmentGeneration({ videoUUID: video.uuid, playlistNumber: i, segment: segmentNum }) 59 await originServer.live.waitUntilSegmentGeneration({
60 server: originServer,
61 videoUUID: video.uuid,
62 playlistNumber: i,
63 segment: segmentNum,
64 objectStorage
65 })
60 66
61 const baseUrl = objectStorage 67 const baseUrl = objectStorage
62 ? ObjectStorageCommand.getPlaylistBaseUrl() + 'hls' 68 ? ObjectStorageCommand.getPlaylistBaseUrl() + 'hls'
63 : originServer.url + '/static/streaming-playlists/hls' 69 : originServer.url + '/static/streaming-playlists/hls'
64 70
65 if (objectStorage) { 71 if (objectStorage) {
66 await originServer.live.waitUntilSegmentUpload({ playlistNumber: i, segment: segmentNum })
67
68 expect(hlsPlaylist.segmentsSha256Url).to.contain(ObjectStorageCommand.getPlaylistBaseUrl()) 72 expect(hlsPlaylist.segmentsSha256Url).to.contain(ObjectStorageCommand.getPlaylistBaseUrl())
69 } 73 }
70 74