diff options
Diffstat (limited to 'server/tests/api/live/live-constraints.ts')
-rw-r--r-- | server/tests/api/live/live-constraints.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/server/tests/api/live/live-constraints.ts b/server/tests/api/live/live-constraints.ts index 5c4817b40..46153f7b1 100644 --- a/server/tests/api/live/live-constraints.ts +++ b/server/tests/api/live/live-constraints.ts | |||
@@ -35,7 +35,7 @@ describe('Test live constraints', function () { | |||
35 | saveReplay | 35 | saveReplay |
36 | } | 36 | } |
37 | 37 | ||
38 | const { uuid } = await servers[0].liveCommand.createLive({ token: userAccessToken, fields: liveAttributes }) | 38 | const { uuid } = await servers[0].liveCommand.create({ token: userAccessToken, fields: liveAttributes }) |
39 | return uuid | 39 | return uuid |
40 | } | 40 | } |
41 | 41 | ||
@@ -53,7 +53,7 @@ describe('Test live constraints', function () { | |||
53 | 53 | ||
54 | async function waitUntilLivePublishedOnAllServers (videoId: string) { | 54 | async function waitUntilLivePublishedOnAllServers (videoId: string) { |
55 | for (const server of servers) { | 55 | for (const server of servers) { |
56 | await server.liveCommand.waitUntilLivePublished({ videoId }) | 56 | await server.liveCommand.waitUntilPublished({ videoId }) |
57 | } | 57 | } |
58 | } | 58 | } |
59 | 59 | ||
@@ -105,7 +105,7 @@ describe('Test live constraints', function () { | |||
105 | this.timeout(60000) | 105 | this.timeout(60000) |
106 | 106 | ||
107 | const userVideoLiveoId = await createLiveWrapper(false) | 107 | const userVideoLiveoId = await createLiveWrapper(false) |
108 | await servers[0].liveCommand.runAndTestFfmpegStreamError({ token: userAccessToken, videoId: userVideoLiveoId, shouldHaveError: false }) | 108 | await servers[0].liveCommand.runAndTestStreamError({ token: userAccessToken, videoId: userVideoLiveoId, shouldHaveError: false }) |
109 | }) | 109 | }) |
110 | 110 | ||
111 | it('Should have size limit depending on user global quota if save replay is enabled', async function () { | 111 | it('Should have size limit depending on user global quota if save replay is enabled', async function () { |
@@ -115,7 +115,7 @@ describe('Test live constraints', function () { | |||
115 | await wait(5000) | 115 | await wait(5000) |
116 | 116 | ||
117 | const userVideoLiveoId = await createLiveWrapper(true) | 117 | const userVideoLiveoId = await createLiveWrapper(true) |
118 | await servers[0].liveCommand.runAndTestFfmpegStreamError({ token: userAccessToken, videoId: userVideoLiveoId, shouldHaveError: true }) | 118 | await servers[0].liveCommand.runAndTestStreamError({ token: userAccessToken, videoId: userVideoLiveoId, shouldHaveError: true }) |
119 | 119 | ||
120 | await waitUntilLivePublishedOnAllServers(userVideoLiveoId) | 120 | await waitUntilLivePublishedOnAllServers(userVideoLiveoId) |
121 | await waitJobs(servers) | 121 | await waitJobs(servers) |
@@ -132,7 +132,7 @@ describe('Test live constraints', function () { | |||
132 | await updateQuota({ total: -1, daily: 1 }) | 132 | await updateQuota({ total: -1, daily: 1 }) |
133 | 133 | ||
134 | const userVideoLiveoId = await createLiveWrapper(true) | 134 | const userVideoLiveoId = await createLiveWrapper(true) |
135 | await servers[0].liveCommand.runAndTestFfmpegStreamError({ token: userAccessToken, videoId: userVideoLiveoId, shouldHaveError: true }) | 135 | await servers[0].liveCommand.runAndTestStreamError({ token: userAccessToken, videoId: userVideoLiveoId, shouldHaveError: true }) |
136 | 136 | ||
137 | await waitUntilLivePublishedOnAllServers(userVideoLiveoId) | 137 | await waitUntilLivePublishedOnAllServers(userVideoLiveoId) |
138 | await waitJobs(servers) | 138 | await waitJobs(servers) |
@@ -149,7 +149,7 @@ describe('Test live constraints', function () { | |||
149 | await updateQuota({ total: 10 * 1000 * 1000, daily: -1 }) | 149 | await updateQuota({ total: 10 * 1000 * 1000, daily: -1 }) |
150 | 150 | ||
151 | const userVideoLiveoId = await createLiveWrapper(true) | 151 | const userVideoLiveoId = await createLiveWrapper(true) |
152 | await servers[0].liveCommand.runAndTestFfmpegStreamError({ token: userAccessToken, videoId: userVideoLiveoId, shouldHaveError: false }) | 152 | await servers[0].liveCommand.runAndTestStreamError({ token: userAccessToken, videoId: userVideoLiveoId, shouldHaveError: false }) |
153 | }) | 153 | }) |
154 | 154 | ||
155 | it('Should have max duration limit', async function () { | 155 | it('Should have max duration limit', async function () { |
@@ -170,7 +170,7 @@ describe('Test live constraints', function () { | |||
170 | }) | 170 | }) |
171 | 171 | ||
172 | const userVideoLiveoId = await createLiveWrapper(true) | 172 | const userVideoLiveoId = await createLiveWrapper(true) |
173 | await servers[0].liveCommand.runAndTestFfmpegStreamError({ token: userAccessToken, videoId: userVideoLiveoId, shouldHaveError: true }) | 173 | await servers[0].liveCommand.runAndTestStreamError({ token: userAccessToken, videoId: userVideoLiveoId, shouldHaveError: true }) |
174 | 174 | ||
175 | await waitUntilLivePublishedOnAllServers(userVideoLiveoId) | 175 | await waitUntilLivePublishedOnAllServers(userVideoLiveoId) |
176 | await waitJobs(servers) | 176 | await waitJobs(servers) |