Fix print transcode command test

pull/5190/head
Chocobozzz 2022-08-09 14:46:49 +02:00
parent 7f529402d1
commit 06ac128958
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 6 additions and 3 deletions

View File

@ -11,7 +11,8 @@ import {
PeerTubeServer,
setAccessTokensToServers,
setDefaultAccountAvatar,
setDefaultChannelAvatar
setDefaultChannelAvatar,
waitJobs
} from '@shared/server-commands'
const expect = chai.expect
@ -358,6 +359,8 @@ describe('Test a single server', function () {
it('Should have the video updated', async function () {
this.timeout(60000)
await waitJobs([ server ])
const video = await server.videos.get({ id: videoId })
await completeVideoCheck(server, video, updateCheckAttributes())

View File

@ -27,8 +27,8 @@ describe('Test print transcode jobs', function () {
expect(command).to.includes('-r 25')
expect(command).to.includes('-level:v 3.1')
expect(command).to.includes('-g:v 50')
expect(command).to.includes(`-maxrate `)
expect(command).to.includes(`-bufsize `)
expect(command).to.includes(`-maxrate:v `)
expect(command).to.includes(`-bufsize:v `)
}
})
})