From: Chocobozzz Date: Tue, 3 Jan 2023 13:52:35 +0000 (+0100) Subject: Try to debug a CI issue X-Git-Tag: v5.1.0-rc.1~421 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=518c5cc62d922ddedc16f5a1e2c3e7035f342115;hp=25691c99307997b80075c817a801fe3049cd8987;p=github%2FChocobozzz%2FPeerTube.git Try to debug a CI issue --- 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 () { const video = await server.videos.get({ id: liveId }) expect(video.streamingPlaylists).to.have.lengthOf(1) - await server.live.getSegmentFile({ videoUUID: liveId, segment: 0, playlistNumber: 0 }) - await makeRawRequest({ url: video.streamingPlaylists[0].playlistUrl, expectedStatus: HttpStatusCode.OK_200 }) - await makeRawRequest({ url: video.streamingPlaylists[0].segmentsSha256Url, expectedStatus: HttpStatusCode.OK_200 }) + try { + await server.live.getSegmentFile({ videoUUID: liveId, segment: 0, playlistNumber: 0 }) + await makeRawRequest({ url: video.streamingPlaylists[0].playlistUrl, expectedStatus: HttpStatusCode.OK_200 }) + await makeRawRequest({ url: video.streamingPlaylists[0].segmentsSha256Url, expectedStatus: HttpStatusCode.OK_200 }) + } catch (err) { + // FIXME: try to debug error in CI "Unexpected end of JSON input" + console.error(err) + throw err + } await wait(100) }