import * as chai from 'chai'
import { join } from 'path'
import {
+ buildServerDirectory,
cleanupTests,
doubleFollow,
execCLI,
getEnvCli,
getVideo,
getVideosList,
- root,
ServerInfo,
setAccessTokensToServers,
uploadVideo,
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)