aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/shared/live.ts9
1 files changed, 6 insertions, 3 deletions
diff --git a/server/tests/shared/live.ts b/server/tests/shared/live.ts
index aa79622cb..f165832fe 100644
--- a/server/tests/shared/live.ts
+++ b/server/tests/shared/live.ts
@@ -58,13 +58,16 @@ async function testVideoResolutions (options: {
58 : originServer.url + '/static/streaming-playlists/hls' 58 : originServer.url + '/static/streaming-playlists/hls'
59 59
60 if (objectStorage) { 60 if (objectStorage) {
61 // Playlist file upload 61 await originServer.live.waitUntilSegmentUpload({ playlistNumber: i, segment: segmentNum })
62 await wait(500) 62 await wait(1000)
63 63
64 expect(hlsPlaylist.segmentsSha256Url).to.contain(ObjectStorageCommand.getPlaylistBaseUrl()) 64 expect(hlsPlaylist.segmentsSha256Url).to.contain(ObjectStorageCommand.getPlaylistBaseUrl())
65 } 65 }
66 66
67 const subPlaylist = await originServer.streamingPlaylists.get({ url: `${baseUrl}/${video.uuid}/${i}.m3u8` }) 67 const subPlaylist = await originServer.streamingPlaylists.get({
68 url: `${baseUrl}/${video.uuid}/${i}.m3u8`,
69 withRetry: objectStorage // With object storage, the request may fail because of inconsistent data in S3
70 })
68 71
69 expect(subPlaylist).to.contain(segmentName) 72 expect(subPlaylist).to.contain(segmentName)
70 73