aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/cli/create-transcoding-job.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-07 11:51:09 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:17 +0200
commit65e6e2602c0d5521f3a6740f7469bb92830ecb53 (patch)
treef89024ffff1dafb0281ee2fe028e89b95101bd44 /server/tests/cli/create-transcoding-job.ts
parentbc8090411ddaa8d742ce4de3c83f9dba7bc18e2a (diff)
downloadPeerTube-65e6e2602c0d5521f3a6740f7469bb92830ecb53.tar.gz
PeerTube-65e6e2602c0d5521f3a6740f7469bb92830ecb53.tar.zst
PeerTube-65e6e2602c0d5521f3a6740f7469bb92830ecb53.zip
Introduce config command
Diffstat (limited to 'server/tests/cli/create-transcoding-job.ts')
-rw-r--r--server/tests/cli/create-transcoding-job.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/tests/cli/create-transcoding-job.ts b/server/tests/cli/create-transcoding-job.ts
index be46dec25..e3211882d 100644
--- a/server/tests/cli/create-transcoding-job.ts
+++ b/server/tests/cli/create-transcoding-job.ts
@@ -10,7 +10,6 @@ import {
10 getVideosList, 10 getVideosList,
11 ServerInfo, 11 ServerInfo,
12 setAccessTokensToServers, 12 setAccessTokensToServers,
13 updateCustomSubConfig,
14 uploadVideo 13 uploadVideo
15} from '../../../shared/extra-utils' 14} from '../../../shared/extra-utils'
16import { waitJobs } from '../../../shared/extra-utils/server/jobs' 15import { waitJobs } from '../../../shared/extra-utils/server/jobs'
@@ -47,7 +46,7 @@ describe('Test create transcoding jobs', function () {
47 servers = await flushAndRunMultipleServers(2) 46 servers = await flushAndRunMultipleServers(2)
48 await setAccessTokensToServers(servers) 47 await setAccessTokensToServers(servers)
49 48
50 await updateCustomSubConfig(servers[0].url, servers[0].accessToken, config) 49 await servers[0].configCommand.updateCustomSubConfig({ newConfig: config })
51 50
52 await doubleFollow(servers[0], servers[1]) 51 await doubleFollow(servers[0], servers[1])
53 52
@@ -199,7 +198,7 @@ describe('Test create transcoding jobs', function () {
199 this.timeout(120000) 198 this.timeout(120000)
200 199
201 config.transcoding.hls.enabled = true 200 config.transcoding.hls.enabled = true
202 await updateCustomSubConfig(servers[0].url, servers[0].accessToken, config) 201 await servers[0].configCommand.updateCustomSubConfig({ newConfig: config })
203 202
204 await servers[0].cliCommand.execWithEnv(`npm run create-transcoding-job -- -v ${videosUUID[4]}`) 203 await servers[0].cliCommand.execWithEnv(`npm run create-transcoding-job -- -v ${videosUUID[4]}`)
205 204