1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 10:19:35 +02:00

Try to fix tests

This commit is contained in:
Chocobozzz 2022-10-10 11:31:01 +02:00
parent 63fa260a81
commit 34aa316f58
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 45 additions and 11 deletions

View file

@ -172,6 +172,17 @@ export class LiveCommand extends AbstractCommand {
return this.server.servers.waitUntilLog(`${videoUUID}/${segmentName}`, totalSessions * 2, false)
}
waitUntilSegmentUpload (options: OverrideCommandOptions & {
playlistNumber: number
segment: number
totalSessions?: number
}) {
const { playlistNumber, segment, totalSessions = 1 } = options
const segmentName = `${playlistNumber}-00000${segment}.ts`
return this.server.servers.waitUntilLog(`${segmentName} in bucket `, totalSessions * 2, false)
}
async waitUntilReplacedByReplay (options: OverrideCommandOptions & {
videoId: number | string
}) {