ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix tests
Chocobozzze0232628de5e
diff --git a/packages/tests/src/peertube-runner/video-transcription.ts b/packages/tests/src/peertube-runner/video-transcription.tsindex 0017abcf37..ddb305b261 100644--- a/packages/tests/src/peertube-runner/video-transcription.ts+++ b/packages/tests/src/peertube-runner/video-transcription.ts@@ -71,18 +71,15 @@ describe('Test transcription in peertube-runner program', function () {it('Should not run transcription on video without audio stream', async function () {this.timeout(360000)+ const now = new Date()+const uuid = await uploadForTranscription(servers[0], { fixture: 'video_short_no_audio.mp4' })await waitJobs(servers)- let continueWhile = true- while (continueWhile) {- await wait(500)-- const { data } = await servers[0].runnerJobs.list({ stateOneOf: [ RunnerJobState.ERRORED ] })-- continueWhile = !data.some(j => j.type === 'video-transcription')- }+ const { data } = await servers[0].runnerJobs.list({ stateOneOf: [ RunnerJobState.ERRORED ] })+ const job = data.some(j => j.type === 'video-transcription' && new Date(j.createdAt) >= now)+ expect(job).to.be.falseawait checkNoCaption(servers, uuid)await checkLanguage(servers, uuid, null)