X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fcli%2Foptimize-old-videos.ts;h=91a1c9cc4a789d6baed08776e7a273438657eeaf;hb=8e2392e512f2652267b5483a17ce12f6deb645b8;hp=420fb8049073b93d75200aaba13caa63107acef0;hpb=daf6e4801052d3ca6be2fafd20bae2323b1ce175;p=github%2FChocobozzz%2FPeerTube.git 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' import * as chai from 'chai' import { join } from 'path' import { + buildServerDirectory, cleanupTests, doubleFollow, execCLI, @@ -12,7 +13,6 @@ import { getEnvCli, getVideo, getVideosList, - root, ServerInfo, setAccessTokensToServers, uploadVideo, @@ -100,7 +100,7 @@ describe('Test optimize old videos', function () { expect(file.size).to.be.below(8000000) - const path = join(root(), 'test' + servers[0].internalServerNumber, 'videos', video.uuid + '-' + file.resolution.id + '.mp4') + const path = buildServerDirectory(servers[0], join('videos', video.uuid + '-' + file.resolution.id + '.mp4')) const bitrate = await getVideoFileBitrate(path) const fps = await getVideoFileFPS(path) const resolution = await getVideoFileResolution(path)