From 06ac128958c489efe1008eeca1df683819bd2f18 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 9 Aug 2022 14:46:49 +0200 Subject: Fix print transcode command test --- server/tests/api/videos/single-server.ts | 5 ++++- server/tests/cli/print-transcode-command.ts | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/server/tests/api/videos/single-server.ts b/server/tests/api/videos/single-server.ts index 0e429fef7..c1d86776a 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 27896f031..d5b584577 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 `) } }) }) -- cgit v1.2.3