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:
parent
63fa260a81
commit
34aa316f58
3 changed files with 45 additions and 11 deletions
|
@ -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
|
||||
}) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue