aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/live/live-fast-restream.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-01-03 14:52:35 +0100
committerChocobozzz <me@florianbigard.com>2023-01-03 14:52:35 +0100
commit518c5cc62d922ddedc16f5a1e2c3e7035f342115 (patch)
tree69852ce8c6e65b53b36f7c5ba6a37a446f55b649 /server/tests/api/live/live-fast-restream.ts
parent25691c99307997b80075c817a801fe3049cd8987 (diff)
downloadPeerTube-518c5cc62d922ddedc16f5a1e2c3e7035f342115.tar.gz
PeerTube-518c5cc62d922ddedc16f5a1e2c3e7035f342115.tar.zst
PeerTube-518c5cc62d922ddedc16f5a1e2c3e7035f342115.zip
Try to debug a CI issue
Diffstat (limited to 'server/tests/api/live/live-fast-restream.ts')
-rw-r--r--server/tests/api/live/live-fast-restream.ts12
1 files changed, 9 insertions, 3 deletions
diff --git a/server/tests/api/live/live-fast-restream.ts b/server/tests/api/live/live-fast-restream.ts
index 63a69e591..f6959b83c 100644
--- a/server/tests/api/live/live-fast-restream.ts
+++ b/server/tests/api/live/live-fast-restream.ts
@@ -78,9 +78,15 @@ describe('Fast restream in live', function () {
78 const video = await server.videos.get({ id: liveId }) 78 const video = await server.videos.get({ id: liveId })
79 expect(video.streamingPlaylists).to.have.lengthOf(1) 79 expect(video.streamingPlaylists).to.have.lengthOf(1)
80 80
81 await server.live.getSegmentFile({ videoUUID: liveId, segment: 0, playlistNumber: 0 }) 81 try {
82 await makeRawRequest({ url: video.streamingPlaylists[0].playlistUrl, expectedStatus: HttpStatusCode.OK_200 }) 82 await server.live.getSegmentFile({ videoUUID: liveId, segment: 0, playlistNumber: 0 })
83 await makeRawRequest({ url: video.streamingPlaylists[0].segmentsSha256Url, expectedStatus: HttpStatusCode.OK_200 }) 83 await makeRawRequest({ url: video.streamingPlaylists[0].playlistUrl, expectedStatus: HttpStatusCode.OK_200 })
84 await makeRawRequest({ url: video.streamingPlaylists[0].segmentsSha256Url, expectedStatus: HttpStatusCode.OK_200 })
85 } catch (err) {
86 // FIXME: try to debug error in CI "Unexpected end of JSON input"
87 console.error(err)
88 throw err
89 }
84 90
85 await wait(100) 91 await wait(100)
86 } 92 }