aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-06-24 09:34:56 +0200
committerChocobozzz <me@florianbigard.com>2022-06-24 09:35:30 +0200
commitb6e2b5df73d3b67e275000f612907859c39d90d1 (patch)
tree0a95609e1eaeb33d18bf16d6328d25ed69d6d4d6 /server/tests
parentf2623febd8b7b818e47d995ae59f4f1d2f37961b (diff)
downloadPeerTube-b6e2b5df73d3b67e275000f612907859c39d90d1.tar.gz
PeerTube-b6e2b5df73d3b67e275000f612907859c39d90d1.tar.zst
PeerTube-b6e2b5df73d3b67e275000f612907859c39d90d1.zip
Fix removed sha segments on fast restream
Diffstat (limited to 'server/tests')
-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