Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix print transcode command test

Chocobozzz06ac128958c4
diff --git a/server/tests/api/videos/single-server.ts b/server/tests/api/videos/single-server.ts
index 0e429fef75..c1d86776a0 100644
--- a/server/tests/api/videos/single-server.ts
+++ b/server/tests/api/videos/single-server.ts
@@ -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())
diff --git a/server/tests/cli/print-transcode-command.ts b/server/tests/cli/print-transcode-command.ts
index 27896f0310..d5b5845770 100644
--- a/server/tests/cli/print-transcode-command.ts
+++ b/server/tests/cli/print-transcode-command.ts
@@ -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 `)
}
})
})