mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 17:59:37 +02:00
Introduce server commands
This commit is contained in:
parent
0d8ecb7592
commit
6c5065a011
63 changed files with 688 additions and 708 deletions
|
@ -5,7 +5,6 @@ import { expect } from 'chai'
|
|||
import { join } from 'path'
|
||||
import { getAudioStream, getVideoFileFPS, getVideoStreamFromFile } from '@server/helpers/ffprobe-utils'
|
||||
import {
|
||||
buildServerDirectory,
|
||||
cleanupTests,
|
||||
flushAndRunServer,
|
||||
getVideo,
|
||||
|
@ -247,7 +246,7 @@ describe('Test transcoding plugins', function () {
|
|||
const videoUUID = (await uploadVideoAndGetId({ server, videoName: 'video', fixture: 'video_short_240p.mp4' })).uuid
|
||||
await waitJobs([ server ])
|
||||
|
||||
const path = buildServerDirectory(server, join('videos', videoUUID + '-240.mp4'))
|
||||
const path = server.serversCommand.buildDirectory(join('videos', videoUUID + '-240.mp4'))
|
||||
const audioProbe = await getAudioStream(path)
|
||||
expect(audioProbe.audioStream.codec_name).to.equal('opus')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue