aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/live
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/live')
-rw-r--r--server/tests/api/live/live-fast-restream.ts5
1 files changed, 3 insertions, 2 deletions
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 () {
57 } 57 }
58 58
59 async function ensureLastLiveWorks (liveId: string) { 59 async function ensureLastLiveWorks (liveId: string) {
60 // Equivalent to PEERTUBE_TEST_CONSTANTS.VIDEO_LIVE.CLEANUP_DELAY 60 // Equivalent to PEERTUBE_TEST_CONSTANTS_VIDEO_LIVE_CLEANUP_DELAY
61 for (let i = 0; i < 100; i++) { 61 for (let i = 0; i < 100; i++) {
62 const video = await server.videos.get({ id: liveId }) 62 const video = await server.videos.get({ id: liveId })
63 expect(video.streamingPlaylists).to.have.lengthOf(1) 63 expect(video.streamingPlaylists).to.have.lengthOf(1)
64 64
65 await server.live.getSegment({ videoUUID: liveId, segment: 0, playlistNumber: 0 }) 65 await server.live.getSegment({ videoUUID: liveId, segment: 0, playlistNumber: 0 })
66 await makeRawRequest(video.streamingPlaylists[0].playlistUrl, HttpStatusCode.OK_200) 66 await makeRawRequest(video.streamingPlaylists[0].playlistUrl, HttpStatusCode.OK_200)
67 await makeRawRequest(video.streamingPlaylists[0].segmentsSha256Url, HttpStatusCode.OK_200)
67 68
68 await wait(100) 69 await wait(100)
69 } 70 }
@@ -101,7 +102,7 @@ describe('Fast restream in live', function () {
101 before(async function () { 102 before(async function () {
102 this.timeout(120000) 103 this.timeout(120000)
103 104
104 const env = { 'PEERTUBE_TEST_CONSTANTS.VIDEO_LIVE.CLEANUP_DELAY': '10000' } 105 const env = { 'PEERTUBE_TEST_CONSTANTS_VIDEO_LIVE_CLEANUP_DELAY': '10000' }
105 server = await createSingleServer(1, {}, { env }) 106 server = await createSingleServer(1, {}, { env })
106 107
107 // Get the access tokens 108 // Get the access tokens