aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/cli
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-11-09 11:52:41 +0100
committerChocobozzz <chocobozzz@cpy.re>2021-11-09 15:00:21 +0100
commit221ee1adc916684d4881d2a9c4c01954dcde986e (patch)
treef456a3f3e1fcc2d8dbd3cc6f0d72a4cb2cbbadc2 /server/tests/cli
parent4e29f4fe23b413cc8c55ac0d8373f36bcd60b47a (diff)
downloadPeerTube-221ee1adc916684d4881d2a9c4c01954dcde986e.tar.gz
PeerTube-221ee1adc916684d4881d2a9c4c01954dcde986e.tar.zst
PeerTube-221ee1adc916684d4881d2a9c4c01954dcde986e.zip
Add transcoding fail message in client
Diffstat (limited to 'server/tests/cli')
-rw-r--r--server/tests/cli/create-import-video-file-job.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/cli/create-import-video-file-job.ts b/server/tests/cli/create-import-video-file-job.ts
index 01817216e..1e278bacc 100644
--- a/server/tests/cli/create-import-video-file-job.ts
+++ b/server/tests/cli/create-import-video-file-job.ts
@@ -14,7 +14,7 @@ import {
14 setAccessTokensToServers, 14 setAccessTokensToServers,
15 waitJobs 15 waitJobs
16} from '@shared/extra-utils' 16} from '@shared/extra-utils'
17import { HttpStatusCode, VideoDetails, VideoFile } from '@shared/models' 17import { HttpStatusCode, VideoDetails, VideoFile, VideoInclude } from '@shared/models'
18 18
19const expect = chai.expect 19const expect = chai.expect
20 20
@@ -100,7 +100,7 @@ function runTests (objectStorage: boolean) {
100 await waitJobs(servers) 100 await waitJobs(servers)
101 101
102 for (const server of servers) { 102 for (const server of servers) {
103 const { data: videos } = await server.videos.list() 103 const { data: videos } = await server.videos.listWithToken({ include: VideoInclude.NOT_PUBLISHED_STATE })
104 expect(videos).to.have.lengthOf(2) 104 expect(videos).to.have.lengthOf(2)
105 105
106 const video = videos.find(({ uuid }) => uuid === video2UUID) 106 const video = videos.find(({ uuid }) => uuid === video2UUID)
@@ -124,7 +124,7 @@ function runTests (objectStorage: boolean) {
124 await waitJobs(servers) 124 await waitJobs(servers)
125 125
126 for (const server of servers) { 126 for (const server of servers) {
127 const { data: videos } = await server.videos.list() 127 const { data: videos } = await server.videos.listWithToken({ include: VideoInclude.NOT_PUBLISHED_STATE })
128 expect(videos).to.have.lengthOf(2) 128 expect(videos).to.have.lengthOf(2)
129 129
130 const video = videos.find(({ shortUUID }) => shortUUID === video1ShortId) 130 const video = videos.find(({ shortUUID }) => shortUUID === video1ShortId)