diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-04 15:55:51 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2023-05-09 08:57:34 +0200 |
commit | ab14f0e0dca878dbaccc8f6a895a68e4269c9873 (patch) | |
tree | 078247f8620ee1f3260b8c3e3336059863273eb8 /server/tests/api/runners | |
parent | 5e47f6ab984a7d00782e4c7030afffa1ba480add (diff) | |
download | PeerTube-ab14f0e0dca878dbaccc8f6a895a68e4269c9873.tar.gz PeerTube-ab14f0e0dca878dbaccc8f6a895a68e4269c9873.tar.zst PeerTube-ab14f0e0dca878dbaccc8f6a895a68e4269c9873.zip |
Prefer video studio instead of video edition
Clearer and easier to find in the project
Diffstat (limited to 'server/tests/api/runners')
-rw-r--r-- | server/tests/api/runners/runner-studio-transcoding.ts | 10 |
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' | |||
5 | import { checkPersistentTmpIsEmpty, checkVideoDuration } from '@server/tests/shared' | 5 | import { checkPersistentTmpIsEmpty, checkVideoDuration } from '@server/tests/shared' |
6 | import { buildAbsoluteFixturePath } from '@shared/core-utils' | 6 | import { buildAbsoluteFixturePath } from '@shared/core-utils' |
7 | import { | 7 | import { |
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) |