aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-07 09:34:56 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:17 +0200
commit9c6327f803aaf4200672f1fc40b2f43786daca47 (patch)
tree962b975a5c3515804ed5d269019ce0aa3f5da6b3 /server/tests/api/videos
parentc3d29f694bf8c910f917be655626d0f80871124f (diff)
downloadPeerTube-9c6327f803aaf4200672f1fc40b2f43786daca47.tar.gz
PeerTube-9c6327f803aaf4200672f1fc40b2f43786daca47.tar.zst
PeerTube-9c6327f803aaf4200672f1fc40b2f43786daca47.zip
Introduce jobs command
Diffstat (limited to 'server/tests/api/videos')
-rw-r--r--server/tests/api/videos/video-transcoder.ts8
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)