diff options
Diffstat (limited to 'server/tests/cli')
-rw-r--r-- | server/tests/cli/create-import-video-file-job.ts | 6 |
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' |
17 | import { HttpStatusCode, VideoDetails, VideoFile } from '@shared/models' | 17 | import { HttpStatusCode, VideoDetails, VideoFile, VideoInclude } from '@shared/models' |
18 | 18 | ||
19 | const expect = chai.expect | 19 | const 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) |