aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/cli/optimize-old-videos.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/cli/optimize-old-videos.ts')
-rw-r--r--server/tests/cli/optimize-old-videos.ts6
1 files changed, 1 insertions, 5 deletions
diff --git a/server/tests/cli/optimize-old-videos.ts b/server/tests/cli/optimize-old-videos.ts
index 91a1c9cc4..bd15012fe 100644
--- a/server/tests/cli/optimize-old-videos.ts
+++ b/server/tests/cli/optimize-old-videos.ts
@@ -7,10 +7,8 @@ import {
7 buildServerDirectory, 7 buildServerDirectory,
8 cleanupTests, 8 cleanupTests,
9 doubleFollow, 9 doubleFollow,
10 execCLI,
11 flushAndRunMultipleServers, 10 flushAndRunMultipleServers,
12 generateHighBitrateVideo, 11 generateHighBitrateVideo,
13 getEnvCli,
14 getVideo, 12 getVideo,
15 getVideosList, 13 getVideosList,
16 ServerInfo, 14 ServerInfo,
@@ -73,9 +71,7 @@ describe('Test optimize old videos', function () {
73 it('Should run optimize script', async function () { 71 it('Should run optimize script', async function () {
74 this.timeout(200000) 72 this.timeout(200000)
75 73
76 const env = getEnvCli(servers[0]) 74 await servers[0].cliCommand.execWithEnv('npm run optimize-old-videos')
77 await execCLI(`${env} npm run optimize-old-videos`)
78
79 await waitJobs(servers) 75 await waitJobs(servers)
80 76
81 for (const server of servers) { 77 for (const server of servers) {