aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-08-18 10:00:57 +0200
committerChocobozzz <me@florianbigard.com>2021-08-18 10:02:48 +0200
commitcbb1d46b917356f81e0dfe28aacee03031731960 (patch)
tree9af1f7bf899447ec4849a78b03fec250839bde48 /server/tests/api/videos
parent5f31aaa398b83c974b8357c4e7aae66320d16271 (diff)
downloadPeerTube-cbb1d46b917356f81e0dfe28aacee03031731960.tar.gz
PeerTube-cbb1d46b917356f81e0dfe28aacee03031731960.tar.zst
PeerTube-cbb1d46b917356f81e0dfe28aacee03031731960.zip
Fix hls tests
Diffstat (limited to 'server/tests/api/videos')
-rw-r--r--server/tests/api/videos/video-hls.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/api/videos/video-hls.ts b/server/tests/api/videos/video-hls.ts
index 2c829f532..4685bf3b6 100644
--- a/server/tests/api/videos/video-hls.ts
+++ b/server/tests/api/videos/video-hls.ts
@@ -101,7 +101,7 @@ async function checkHlsPlaylist (options: {
101 const playlistName = removeFragmentedMP4Ext(basename(file.fileUrl)) + '.m3u8' 101 const playlistName = removeFragmentedMP4Ext(basename(file.fileUrl)) + '.m3u8'
102 102
103 const url = objectStorageBaseUrl 103 const url = objectStorageBaseUrl
104 ? `${objectStorageBaseUrl}hls_${videoUUID}/${playlistName}` 104 ? `${objectStorageBaseUrl}hls/${videoUUID}/${playlistName}`
105 : `${baseUrl}/static/streaming-playlists/hls/${videoUUID}/${playlistName}` 105 : `${baseUrl}/static/streaming-playlists/hls/${videoUUID}/${playlistName}`
106 106
107 const subPlaylist = await server.streamingPlaylists.get({ url }) 107 const subPlaylist = await server.streamingPlaylists.get({ url })
@@ -113,7 +113,7 @@ async function checkHlsPlaylist (options: {
113 113
114 { 114 {
115 const baseUrlAndPath = objectStorageBaseUrl 115 const baseUrlAndPath = objectStorageBaseUrl
116 ? objectStorageBaseUrl + 'hls_' + videoUUID 116 ? objectStorageBaseUrl + 'hls/' + videoUUID
117 : baseUrl + '/static/streaming-playlists/hls/' + videoUUID 117 : baseUrl + '/static/streaming-playlists/hls/' + videoUUID
118 118
119 for (const resolution of resolutions) { 119 for (const resolution of resolutions) {
@@ -165,7 +165,7 @@ describe('Test HLS videos', function () {
165 }) 165 })
166 166
167 it('Should update the video', async function () { 167 it('Should update the video', async function () {
168 this.timeout(10000) 168 this.timeout(30000)
169 169
170 await servers[0].videos.update({ id: videoUUID, attributes: { name: 'video 1 updated' } }) 170 await servers[0].videos.update({ id: videoUUID, attributes: { name: 'video 1 updated' } })
171 171