aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/cli
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/cli')
-rw-r--r--server/tests/cli/peertube.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/tests/cli/peertube.ts b/server/tests/cli/peertube.ts
index 0a4f54ffa..64a93ebb5 100644
--- a/server/tests/cli/peertube.ts
+++ b/server/tests/cli/peertube.ts
@@ -15,6 +15,7 @@ import {
15 getLocalIdByUUID, 15 getLocalIdByUUID,
16 getVideo, 16 getVideo,
17 getVideosList, 17 getVideosList,
18 ImportsCommand,
18 removeVideo, 19 removeVideo,
19 ServerInfo, 20 ServerInfo,
20 setAccessTokensToServers, 21 setAccessTokensToServers,
@@ -23,7 +24,6 @@ import {
23 userLogin, 24 userLogin,
24 waitJobs 25 waitJobs
25} from '../../../shared/extra-utils' 26} from '../../../shared/extra-utils'
26import { getYoutubeVideoUrl } from '../../../shared/extra-utils/videos/video-imports'
27 27
28describe('Test CLI wrapper', function () { 28describe('Test CLI wrapper', function () {
29 let server: ServerInfo 29 let server: ServerInfo
@@ -122,7 +122,7 @@ describe('Test CLI wrapper', function () {
122 122
123 this.timeout(60000) 123 this.timeout(60000)
124 124
125 const params = `--target-url ${getYoutubeVideoUrl()} --channel-name user_channel` 125 const params = `--target-url ${ImportsCommand.getYoutubeVideoUrl()} --channel-name user_channel`
126 await cliCommand.execWithEnv(`${cmd} import ${params}`) 126 await cliCommand.execWithEnv(`${cmd} import ${params}`)
127 }) 127 })
128 128
@@ -155,7 +155,8 @@ describe('Test CLI wrapper', function () {
155 155
156 this.timeout(60000) 156 this.timeout(60000)
157 157
158 const params = `--target-url ${getYoutubeVideoUrl()} --channel-name user_channel --video-name toto --nsfw --support support` 158 const params = `--target-url ${ImportsCommand.getYoutubeVideoUrl()} ` +
159 `--channel-name user_channel --video-name toto --nsfw --support support`
159 await cliCommand.execWithEnv(`${cmd} import ${params}`) 160 await cliCommand.execWithEnv(`${cmd} import ${params}`)
160 161
161 await waitJobs([ server ]) 162 await waitJobs([ server ])