From a6e37eebfbef9aef91e35173ed799afb6c4a288b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 5 May 2021 09:25:11 +0200 Subject: Fix transcoding job priority New resolution jobs are also important if waiting for transcoding is enabled since we publish the video after the first resolution generation --- server/tests/api/videos/video-transcoder.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'server/tests') diff --git a/server/tests/api/videos/video-transcoder.ts b/server/tests/api/videos/video-transcoder.ts index 1058baaa3..1c99f26df 100644 --- a/server/tests/api/videos/video-transcoder.ts +++ b/server/tests/api/videos/video-transcoder.ts @@ -721,12 +721,7 @@ describe('Test video transcoding', function () { expect(webtorrentJobs).to.have.lengthOf(6) expect(optimizeJobs).to.have.lengthOf(1) - for (const j of optimizeJobs) { - expect(j.priority).to.be.greaterThan(11) - expect(j.priority).to.be.lessThan(50) - } - - for (const j of hlsJobs.concat(webtorrentJobs)) { + for (const j of optimizeJobs.concat(hlsJobs.concat(webtorrentJobs))) { expect(j.priority).to.be.greaterThan(100) expect(j.priority).to.be.lessThan(150) } -- cgit v1.2.3