From 89eda2aab005e6c8f548acc80471ce4bad039ecd Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 26 May 2023 16:09:28 +0200 Subject: Fix runner vod transcoding error test --- server/tests/api/runners/runner-vod-transcoding.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'server') 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 () { const { availableJobs } = await servers[0].runnerJobs.request({ runnerToken }) const jobUUID = availableJobs[0].uuid - const { job } = await servers[0].runnerJobs.accept({ runnerToken, jobUUID }) - const jobToken = job.jobToken + for (let i = 0; i < 5; i++) { + const { job } = await servers[0].runnerJobs.accept({ runnerToken, jobUUID }) + const jobToken = job.jobToken - await servers[0].runnerJobs.error({ runnerToken, jobUUID, jobToken, message: 'Error' }) + await servers[0].runnerJobs.error({ runnerToken, jobUUID, jobToken, message: 'Error' }) + } const video = await servers[0].videos.get({ id: uuid }) expect(video.state.id).to.equal(VideoState.TRANSCODING_FAILED) -- cgit v1.2.3