diff options
author | Chocobozzz <me@florianbigard.com> | 2022-06-24 09:34:56 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-06-24 09:57:55 +0200 |
commit | 92083e42289e19033425672dfbe2234aef03c6df (patch) | |
tree | 01746b73d351f2a44932794549532b6a5ead1cbd /server/tests | |
parent | 383dbdec67fc474652c4e59440238da0b2fb6e8c (diff) | |
download | PeerTube-92083e42289e19033425672dfbe2234aef03c6df.tar.gz PeerTube-92083e42289e19033425672dfbe2234aef03c6df.tar.zst PeerTube-92083e42289e19033425672dfbe2234aef03c6df.zip |
Fix removed sha segments on fast restream
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/api/live/live-fast-restream.ts | 5 |
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 |