aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/server-commands/videos/live-command.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-10-10 11:31:01 +0200
committerChocobozzz <me@florianbigard.com>2022-10-10 11:40:29 +0200
commit34aa316f58f726662bc609cf99f33327bddb18c5 (patch)
tree098fbd4cb339b39aa1d834c3c2add406fa703d5d /shared/server-commands/videos/live-command.ts
parent63fa260a81a8930c157b73c897fe8696a8cc90d4 (diff)
downloadPeerTube-34aa316f58f726662bc609cf99f33327bddb18c5.tar.gz
PeerTube-34aa316f58f726662bc609cf99f33327bddb18c5.tar.zst
PeerTube-34aa316f58f726662bc609cf99f33327bddb18c5.zip
Try to fix tests
Diffstat (limited to 'shared/server-commands/videos/live-command.ts')
-rw-r--r--shared/server-commands/videos/live-command.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/shared/server-commands/videos/live-command.ts b/shared/server-commands/videos/live-command.ts
index defae95fb..84d127db2 100644
--- a/shared/server-commands/videos/live-command.ts
+++ b/shared/server-commands/videos/live-command.ts
@@ -172,6 +172,17 @@ export class LiveCommand extends AbstractCommand {
172 return this.server.servers.waitUntilLog(`${videoUUID}/${segmentName}`, totalSessions * 2, false) 172 return this.server.servers.waitUntilLog(`${videoUUID}/${segmentName}`, totalSessions * 2, false)
173 } 173 }
174 174
175 waitUntilSegmentUpload (options: OverrideCommandOptions & {
176 playlistNumber: number
177 segment: number
178 totalSessions?: number
179 }) {
180 const { playlistNumber, segment, totalSessions = 1 } = options
181 const segmentName = `${playlistNumber}-00000${segment}.ts`
182
183 return this.server.servers.waitUntilLog(`${segmentName} in bucket `, totalSessions * 2, false)
184 }
185
175 async waitUntilReplacedByReplay (options: OverrideCommandOptions & { 186 async waitUntilReplacedByReplay (options: OverrideCommandOptions & {
176 videoId: number | string 187 videoId: number | string
177 }) { 188 }) {