import {
cleanupTests,
doubleFollow,
- execCLI,
flushAndRunMultipleServers,
- getEnvCli,
getVideo,
getVideosList,
ServerInfo,
})
it('Should run a import job on video 1 with a lower resolution', async function () {
- const env = getEnvCli(servers[0])
- await execCLI(`${env} npm run create-import-video-file-job -- -v ${video1UUID} -i server/tests/fixtures/video_short-480.webm`)
+ const command = `npm run create-import-video-file-job -- -v ${video1UUID} -i server/tests/fixtures/video_short-480.webm`
+ await servers[0].cliCommand.execWithEnv(command)
await waitJobs(servers)
})
it('Should run a import job on video 2 with the same resolution and a different extension', async function () {
- const env = getEnvCli(servers[1])
- await execCLI(`${env} npm run create-import-video-file-job -- -v ${video2UUID} -i server/tests/fixtures/video_short.ogv`)
+ const command = `npm run create-import-video-file-job -- -v ${video2UUID} -i server/tests/fixtures/video_short.ogv`
+ await servers[1].cliCommand.execWithEnv(command)
await waitJobs(servers)
})
it('Should run a import job on video 2 with the same resolution and the same extension', async function () {
- const env = getEnvCli(servers[0])
- await execCLI(`${env} npm run create-import-video-file-job -- -v ${video1UUID} -i server/tests/fixtures/video_short2.webm`)
+ const command = `npm run create-import-video-file-job -- -v ${video1UUID} -i server/tests/fixtures/video_short2.webm`
+ await servers[0].cliCommand.execWithEnv(command)
await waitJobs(servers)