diff options
Diffstat (limited to 'packages/tests/src/api/live/live-constraints.ts')
-rw-r--r-- | packages/tests/src/api/live/live-constraints.ts | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/packages/tests/src/api/live/live-constraints.ts b/packages/tests/src/api/live/live-constraints.ts index f62994cbd..725e35d23 100644 --- a/packages/tests/src/api/live/live-constraints.ts +++ b/packages/tests/src/api/live/live-constraints.ts | |||
@@ -213,7 +213,16 @@ describe('Test live constraints', function () { | |||
213 | maxDuration: 15, | 213 | maxDuration: 15, |
214 | transcoding: { | 214 | transcoding: { |
215 | enabled: true, | 215 | enabled: true, |
216 | resolutions: ConfigCommand.getCustomConfigResolutions(true) | 216 | resolutions: { |
217 | '144p': true, | ||
218 | '240p': true, | ||
219 | '360p': false, | ||
220 | '480p': false, | ||
221 | '720p': true, | ||
222 | '1080p': false, | ||
223 | '1440p': false, | ||
224 | '2160p': false | ||
225 | } | ||
217 | } | 226 | } |
218 | } | 227 | } |
219 | } | 228 | } |
@@ -225,7 +234,7 @@ describe('Test live constraints', function () { | |||
225 | await waitUntilLiveReplacedByReplayOnAllServers(servers, userVideoLiveoId) | 234 | await waitUntilLiveReplacedByReplayOnAllServers(servers, userVideoLiveoId) |
226 | await waitJobs(servers) | 235 | await waitJobs(servers) |
227 | 236 | ||
228 | await checkSaveReplay(userVideoLiveoId, [ 720, 480, 360, 240, 144 ]) | 237 | await checkSaveReplay(userVideoLiveoId, [ 720, 240, 144 ]) |
229 | 238 | ||
230 | const session = await servers[0].live.getReplaySession({ videoId: userVideoLiveoId }) | 239 | const session = await servers[0].live.getReplaySession({ videoId: userVideoLiveoId }) |
231 | expect(session.error).to.equal(LiveVideoError.DURATION_EXCEEDED) | 240 | expect(session.error).to.equal(LiveVideoError.DURATION_EXCEEDED) |