aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/live/live.ts
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/api/live/live.ts
parent8c13fd744fcb1c40f705eeceb4fbf08676d7451a (diff)
downloadPeerTube-bbae45c32ea41ba4926b291fac5f594c94d5aa9d.tar.gz
PeerTube-bbae45c32ea41ba4926b291fac5f594c94d5aa9d.tar.zst
PeerTube-bbae45c32ea41ba4926b291fac5f594c94d5aa9d.zip
Fix live tests
Diffstat (limited to 'server/tests/api/live/live.ts')
-rw-r--r--server/tests/api/live/live.ts12
1 files changed, 9 insertions, 3 deletions
diff --git a/server/tests/api/live/live.ts b/server/tests/api/live/live.ts
index 5dd2bd9ab..0a7ae8536 100644
--- a/server/tests/api/live/live.ts
+++ b/server/tests/api/live/live.ts
@@ -695,9 +695,15 @@ describe('Test live', function () {
695 commands[0].waitUntilPublished({ videoId: liveVideoReplayId }) 695 commands[0].waitUntilPublished({ videoId: liveVideoReplayId })
696 ]) 696 ])
697 697
698 await commands[0].waitUntilSegmentGeneration({ videoUUID: liveVideoId, playlistNumber: 0, segment: 2 }) 698 for (const videoUUID of [ liveVideoId, liveVideoReplayId, permanentLiveVideoReplayId ]) {
699 await commands[0].waitUntilSegmentGeneration({ videoUUID: liveVideoReplayId, playlistNumber: 0, segment: 2 }) 699 await commands[0].waitUntilSegmentGeneration({
700 await commands[0].waitUntilSegmentGeneration({ videoUUID: permanentLiveVideoReplayId, playlistNumber: 0, segment: 2 }) 700 server: servers[0],
701 videoUUID,
702 playlistNumber: 0,
703 segment: 2,
704 objectStorage: false
705 })
706 }
701 707
702 { 708 {
703 const video = await servers[0].videos.get({ id: permanentLiveVideoReplayId }) 709 const video = await servers[0].videos.get({ id: permanentLiveVideoReplayId })