aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-26 16:09:28 +0200
committerChocobozzz <me@florianbigard.com>2023-05-26 16:09:28 +0200
commit89eda2aab005e6c8f548acc80471ce4bad039ecd (patch)
treeb1fcd7725ed878ab912fb71893905b315d8e6d9b /server
parentc56dd2807fe5d129907b9bf8c42656a8314d754b (diff)
downloadPeerTube-89eda2aab005e6c8f548acc80471ce4bad039ecd.tar.gz
PeerTube-89eda2aab005e6c8f548acc80471ce4bad039ecd.tar.zst
PeerTube-89eda2aab005e6c8f548acc80471ce4bad039ecd.zip
Fix runner vod transcoding error test
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)