From b6e2b5df73d3b67e275000f612907859c39d90d1 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 24 Jun 2022 09:34:56 +0200 Subject: Fix removed sha segments on fast restream --- server/tests/api/live/live-fast-restream.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'server/tests/api') diff --git a/server/tests/api/live/live-fast-restream.ts b/server/tests/api/live/live-fast-restream.ts index 4b5d041ec..b524cbe7f 100644 --- a/server/tests/api/live/live-fast-restream.ts +++ b/server/tests/api/live/live-fast-restream.ts @@ -57,13 +57,14 @@ describe('Fast restream in live', function () { } async function ensureLastLiveWorks (liveId: string) { - // Equivalent to PEERTUBE_TEST_CONSTANTS.VIDEO_LIVE.CLEANUP_DELAY + // Equivalent to PEERTUBE_TEST_CONSTANTS_VIDEO_LIVE_CLEANUP_DELAY for (let i = 0; i < 100; i++) { const video = await server.videos.get({ id: liveId }) expect(video.streamingPlaylists).to.have.lengthOf(1) await server.live.getSegment({ videoUUID: liveId, segment: 0, playlistNumber: 0 }) await makeRawRequest(video.streamingPlaylists[0].playlistUrl, HttpStatusCode.OK_200) + await makeRawRequest(video.streamingPlaylists[0].segmentsSha256Url, HttpStatusCode.OK_200) await wait(100) } @@ -101,7 +102,7 @@ describe('Fast restream in live', function () { before(async function () { this.timeout(120000) - const env = { 'PEERTUBE_TEST_CONSTANTS.VIDEO_LIVE.CLEANUP_DELAY': '10000' } + const env = { 'PEERTUBE_TEST_CONSTANTS_VIDEO_LIVE_CLEANUP_DELAY': '10000' } server = await createSingleServer(1, {}, { env }) // Get the access tokens -- cgit v1.2.3 From c3fb12b31f8367394df4eb5718e4059e167782d8 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 24 Jun 2022 10:13:09 +0200 Subject: Fix lint --- server/tests/api/live/live-fast-restream.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/tests/api') diff --git a/server/tests/api/live/live-fast-restream.ts b/server/tests/api/live/live-fast-restream.ts index b524cbe7f..fb4ae147c 100644 --- a/server/tests/api/live/live-fast-restream.ts +++ b/server/tests/api/live/live-fast-restream.ts @@ -102,7 +102,7 @@ describe('Fast restream in live', function () { before(async function () { this.timeout(120000) - const env = { 'PEERTUBE_TEST_CONSTANTS_VIDEO_LIVE_CLEANUP_DELAY': '10000' } + const env = { PEERTUBE_TEST_CONSTANTS_VIDEO_LIVE_CLEANUP_DELAY: '10000' } server = await createSingleServer(1, {}, { env }) // Get the access tokens -- cgit v1.2.3