- const res = await getVideo(server.url, videoId)
- expect((res.body as VideoDetails).state.id).to.equal(state)
+ const video = await server.videos.get({ id: videoId })
+ expect(video.state.id).to.equal(state)
+ }
+ }
+
+ async function waitUntilLivePublishedOnAllServers (videoId: string) {
+ for (const server of servers) {
+ await server.live.waitUntilPublished({ videoId })
+ }
+ }
+
+ async function waitUntilLiveSavedOnAllServers (videoId: string) {
+ for (const server of servers) {
+ await server.live.waitUntilSaved({ videoId })