aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/tests/api/runners/runner-vod-transcoding.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/server/tests/api/runners/runner-vod-transcoding.ts b/server/tests/api/runners/runner-vod-transcoding.ts
index 43e005bbe..d9da0f40d 100644
--- a/server/tests/api/runners/runner-vod-transcoding.ts
+++ b/server/tests/api/runners/runner-vod-transcoding.ts
@@ -98,10 +98,12 @@ describe('Test runner VOD transcoding', function () {
98 const { availableJobs } = await servers[0].runnerJobs.request({ runnerToken }) 98 const { availableJobs } = await servers[0].runnerJobs.request({ runnerToken })
99 const jobUUID = availableJobs[0].uuid 99 const jobUUID = availableJobs[0].uuid
100 100
101 const { job } = await servers[0].runnerJobs.accept({ runnerToken, jobUUID }) 101 for (let i = 0; i < 5; i++) {
102 const jobToken = job.jobToken 102 const { job } = await servers[0].runnerJobs.accept({ runnerToken, jobUUID })
103 const jobToken = job.jobToken
103 104
104 await servers[0].runnerJobs.error({ runnerToken, jobUUID, jobToken, message: 'Error' }) 105 await servers[0].runnerJobs.error({ runnerToken, jobUUID, jobToken, message: 'Error' })
106 }
105 107
106 const video = await servers[0].videos.get({ id: uuid }) 108 const video = await servers[0].videos.get({ id: uuid })
107 expect(video.state.id).to.equal(VideoState.TRANSCODING_FAILED) 109 expect(video.state.id).to.equal(VideoState.TRANSCODING_FAILED)