diff options
author | Chocobozzz <me@florianbigard.com> | 2022-10-10 11:31:01 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-10-10 11:40:29 +0200 |
commit | 34aa316f58f726662bc609cf99f33327bddb18c5 (patch) | |
tree | 098fbd4cb339b39aa1d834c3c2add406fa703d5d /server/tests | |
parent | 63fa260a81a8930c157b73c897fe8696a8cc90d4 (diff) | |
download | PeerTube-34aa316f58f726662bc609cf99f33327bddb18c5.tar.gz PeerTube-34aa316f58f726662bc609cf99f33327bddb18c5.tar.zst PeerTube-34aa316f58f726662bc609cf99f33327bddb18c5.zip |
Try to fix tests
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/shared/live.ts | 9 |
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 | ||