From 89aa3331106874266f6feeee7bff852da2c1727e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 28 Jul 2023 11:07:03 +0200 Subject: Add ability to force transcoding --- server/tests/api/check-params/transcoding.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'server/tests/api/check-params') diff --git a/server/tests/api/check-params/transcoding.ts b/server/tests/api/check-params/transcoding.ts index 4bebcb528..d5899e11b 100644 --- a/server/tests/api/check-params/transcoding.ts +++ b/server/tests/api/check-params/transcoding.ts @@ -93,15 +93,17 @@ describe('Test transcoding API validators', function () { await servers[0].videos.runTranscoding({ videoId: validId, transcodingType: 'hls' }) await waitJobs(servers) - await servers[0].videos.runTranscoding({ videoId: validId, transcodingType: 'web-video' }) + await servers[0].videos.runTranscoding({ videoId: validId, transcodingType: 'web-video', forceTranscoding: true }) await waitJobs(servers) }) - it('Should not run transcoding on a video that is already being transcoded', async function () { + it('Should not run transcoding on a video that is already being transcoded if forceTranscoding is not set', async function () { await servers[0].videos.runTranscoding({ videoId: validId, transcodingType: 'web-video' }) const expectedStatus = HttpStatusCode.CONFLICT_409 await servers[0].videos.runTranscoding({ videoId: validId, transcodingType: 'web-video', expectedStatus }) + + await servers[0].videos.runTranscoding({ videoId: validId, transcodingType: 'web-video', forceTranscoding: true }) }) after(async function () { -- cgit v1.2.3