aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/runners/runner-studio-transcoding.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/runners/runner-studio-transcoding.ts')
-rw-r--r--server/tests/api/runners/runner-studio-transcoding.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/server/tests/api/runners/runner-studio-transcoding.ts b/server/tests/api/runners/runner-studio-transcoding.ts
index 9ae629be6..41c556775 100644
--- a/server/tests/api/runners/runner-studio-transcoding.ts
+++ b/server/tests/api/runners/runner-studio-transcoding.ts
@@ -5,8 +5,8 @@ import { readFile } from 'fs-extra'
5import { checkPersistentTmpIsEmpty, checkVideoDuration } from '@server/tests/shared' 5import { checkPersistentTmpIsEmpty, checkVideoDuration } from '@server/tests/shared'
6import { buildAbsoluteFixturePath } from '@shared/core-utils' 6import { buildAbsoluteFixturePath } from '@shared/core-utils'
7import { 7import {
8 RunnerJobVideoEditionTranscodingPayload, 8 RunnerJobStudioTranscodingPayload,
9 VideoEditionTranscodingSuccess, 9 VideoStudioTranscodingSuccess,
10 VideoState, 10 VideoState,
11 VideoStudioTask, 11 VideoStudioTask,
12 VideoStudioTaskIntro 12 VideoStudioTaskIntro
@@ -121,10 +121,10 @@ describe('Test runner video studio transcoding', function () {
121 await checkVideoDuration(server, videoUUID, 5) 121 await checkVideoDuration(server, videoUUID, 5)
122 } 122 }
123 123
124 const { job } = await servers[0].runnerJobs.accept<RunnerJobVideoEditionTranscodingPayload>({ runnerToken, jobUUID }) 124 const { job } = await servers[0].runnerJobs.accept<RunnerJobStudioTranscodingPayload>({ runnerToken, jobUUID })
125 const jobToken = job.jobToken 125 const jobToken = job.jobToken
126 126
127 expect(job.type === 'video-edition-transcoding') 127 expect(job.type === 'video-studio-transcoding')
128 expect(job.payload.input.videoFileUrl).to.exist 128 expect(job.payload.input.videoFileUrl).to.exist
129 129
130 // Check video input file 130 // Check video input file
@@ -150,7 +150,7 @@ describe('Test runner video studio transcoding', function () {
150 expect(body).to.deep.equal(inputFile) 150 expect(body).to.deep.equal(inputFile)
151 } 151 }
152 152
153 const payload: VideoEditionTranscodingSuccess = { videoFile: 'video_very_short_240p.mp4' } 153 const payload: VideoStudioTranscodingSuccess = { videoFile: 'video_very_short_240p.mp4' }
154 await servers[0].runnerJobs.success({ runnerToken, jobUUID, jobToken, payload }) 154 await servers[0].runnerJobs.success({ runnerToken, jobUUID, jobToken, payload })
155 155
156 await waitJobs(servers) 156 await waitJobs(servers)