diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-08 10:25:50 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:17 +0200 |
commit | 04aed76711909507e74905bde3a7fa024d3585c9 (patch) | |
tree | da93912bb9331feda40f597da3fea7dc24970d66 /server/tests/api/live/live-save-replay.ts | |
parent | d897210c2db1ca2acc1e7b28a13127647ab2222c (diff) | |
download | PeerTube-04aed76711909507e74905bde3a7fa024d3585c9.tar.gz PeerTube-04aed76711909507e74905bde3a7fa024d3585c9.tar.zst PeerTube-04aed76711909507e74905bde3a7fa024d3585c9.zip |
Shorter live methods
Diffstat (limited to 'server/tests/api/live/live-save-replay.ts')
-rw-r--r-- | server/tests/api/live/live-save-replay.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/api/live/live-save-replay.ts b/server/tests/api/live/live-save-replay.ts index d3c252ffd..9acd5601d 100644 --- a/server/tests/api/live/live-save-replay.ts +++ b/server/tests/api/live/live-save-replay.ts | |||
@@ -47,7 +47,7 @@ describe('Save replay setting', function () { | |||
47 | saveReplay | 47 | saveReplay |
48 | } | 48 | } |
49 | 49 | ||
50 | const { uuid } = await servers[0].liveCommand.createLive({ fields: attributes }) | 50 | const { uuid } = await servers[0].liveCommand.create({ fields: attributes }) |
51 | return uuid | 51 | return uuid |
52 | } | 52 | } |
53 | 53 | ||
@@ -74,13 +74,13 @@ describe('Save replay setting', function () { | |||
74 | 74 | ||
75 | async function waitUntilLivePublishedOnAllServers (videoId: string) { | 75 | async function waitUntilLivePublishedOnAllServers (videoId: string) { |
76 | for (const server of servers) { | 76 | for (const server of servers) { |
77 | await server.liveCommand.waitUntilLivePublished({ videoId }) | 77 | await server.liveCommand.waitUntilPublished({ videoId }) |
78 | } | 78 | } |
79 | } | 79 | } |
80 | 80 | ||
81 | async function waitUntilLiveSavedOnAllServers (videoId: string) { | 81 | async function waitUntilLiveSavedOnAllServers (videoId: string) { |
82 | for (const server of servers) { | 82 | for (const server of servers) { |
83 | await server.liveCommand.waitUntilLiveSaved({ videoId }) | 83 | await server.liveCommand.waitUntilSaved({ videoId }) |
84 | } | 84 | } |
85 | } | 85 | } |
86 | 86 | ||
@@ -147,7 +147,7 @@ describe('Save replay setting', function () { | |||
147 | await stopFfmpeg(ffmpegCommand) | 147 | await stopFfmpeg(ffmpegCommand) |
148 | 148 | ||
149 | for (const server of servers) { | 149 | for (const server of servers) { |
150 | await server.liveCommand.waitUntilLiveEnded({ videoId: liveVideoUUID }) | 150 | await server.liveCommand.waitUntilEnded({ videoId: liveVideoUUID }) |
151 | } | 151 | } |
152 | await waitJobs(servers) | 152 | await waitJobs(servers) |
153 | 153 | ||