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.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/cli/optimize-old-videos.ts b/server/tests/cli/optimize-old-videos.ts
index 420fb8049..91a1c9cc4 100644
--- a/server/tests/cli/optimize-old-videos.ts
+++ b/server/tests/cli/optimize-old-videos.ts
@@ -4,6 +4,7 @@ import 'mocha'
4import * as chai from 'chai' 4import * as chai from 'chai'
5import { join } from 'path' 5import { join } from 'path'
6import { 6import {
7 buildServerDirectory,
7 cleanupTests, 8 cleanupTests,
8 doubleFollow, 9 doubleFollow,
9 execCLI, 10 execCLI,
@@ -12,7 +13,6 @@ import {
12 getEnvCli, 13 getEnvCli,
13 getVideo, 14 getVideo,
14 getVideosList, 15 getVideosList,
15 root,
16 ServerInfo, 16 ServerInfo,
17 setAccessTokensToServers, 17 setAccessTokensToServers,
18 uploadVideo, 18 uploadVideo,
@@ -100,7 +100,7 @@ describe('Test optimize old videos', function () {
100 100
101 expect(file.size).to.be.below(8000000) 101 expect(file.size).to.be.below(8000000)
102 102
103 const path = join(root(), 'test' + servers[0].internalServerNumber, 'videos', video.uuid + '-' + file.resolution.id + '.mp4') 103 const path = buildServerDirectory(servers[0], join('videos', video.uuid + '-' + file.resolution.id + '.mp4'))
104 const bitrate = await getVideoFileBitrate(path) 104 const bitrate = await getVideoFileBitrate(path)
105 const fps = await getVideoFileFPS(path) 105 const fps = await getVideoFileFPS(path)
106 const resolution = await getVideoFileResolution(path) 106 const resolution = await getVideoFileResolution(path)