diff options
Diffstat (limited to 'server/tests/api/videos')
-rw-r--r-- | server/tests/api/videos/video-transcoder.ts | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/server/tests/api/videos/video-transcoder.ts b/server/tests/api/videos/video-transcoder.ts index ea5ffd239..c95053a29 100644 --- a/server/tests/api/videos/video-transcoder.ts +++ b/server/tests/api/videos/video-transcoder.ts | |||
@@ -16,7 +16,6 @@ import { | |||
16 | flushAndRunMultipleServers, | 16 | flushAndRunMultipleServers, |
17 | generateHighBitrateVideo, | 17 | generateHighBitrateVideo, |
18 | generateVideoWithFramerate, | 18 | generateVideoWithFramerate, |
19 | getJobsListPaginationAndSort, | ||
20 | getMyVideos, | 19 | getMyVideos, |
21 | getServerFileSize, | 20 | getServerFileSize, |
22 | getVideo, | 21 | getVideo, |
@@ -709,17 +708,14 @@ describe('Test video transcoding', function () { | |||
709 | describe('Transcoding job queue', function () { | 708 | describe('Transcoding job queue', function () { |
710 | 709 | ||
711 | it('Should have the appropriate priorities for transcoding jobs', async function () { | 710 | it('Should have the appropriate priorities for transcoding jobs', async function () { |
712 | const res = await getJobsListPaginationAndSort({ | 711 | const body = await servers[1].jobsCommand.getJobsList({ |
713 | url: servers[1].url, | ||
714 | accessToken: servers[1].accessToken, | ||
715 | start: 0, | 712 | start: 0, |
716 | count: 100, | 713 | count: 100, |
717 | sort: '-createdAt', | 714 | sort: '-createdAt', |
718 | jobType: 'video-transcoding' | 715 | jobType: 'video-transcoding' |
719 | }) | 716 | }) |
720 | 717 | ||
721 | const jobs = res.body.data as Job[] | 718 | const jobs = body.data |
722 | |||
723 | const transcodingJobs = jobs.filter(j => j.data.videoUUID === video4k) | 719 | const transcodingJobs = jobs.filter(j => j.data.videoUUID === video4k) |
724 | 720 | ||
725 | expect(transcodingJobs).to.have.lengthOf(14) | 721 | expect(transcodingJobs).to.have.lengthOf(14) |