diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-09 14:46:49 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-08-09 14:49:25 +0200 |
commit | 06ac128958c489efe1008eeca1df683819bd2f18 (patch) | |
tree | 04664b2ddb7b00d3fae7ec358a0913b2205205c8 /server/tests | |
parent | 7f529402d17a918136af7a1291e61a94c2e16f6d (diff) | |
download | PeerTube-06ac128958c489efe1008eeca1df683819bd2f18.tar.gz PeerTube-06ac128958c489efe1008eeca1df683819bd2f18.tar.zst PeerTube-06ac128958c489efe1008eeca1df683819bd2f18.zip |
Fix print transcode command test
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/api/videos/single-server.ts | 5 | ||||
-rw-r--r-- | 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 { | |||
11 | PeerTubeServer, | 11 | PeerTubeServer, |
12 | setAccessTokensToServers, | 12 | setAccessTokensToServers, |
13 | setDefaultAccountAvatar, | 13 | setDefaultAccountAvatar, |
14 | setDefaultChannelAvatar | 14 | setDefaultChannelAvatar, |
15 | waitJobs | ||
15 | } from '@shared/server-commands' | 16 | } from '@shared/server-commands' |
16 | 17 | ||
17 | const expect = chai.expect | 18 | const expect = chai.expect |
@@ -358,6 +359,8 @@ describe('Test a single server', function () { | |||
358 | it('Should have the video updated', async function () { | 359 | it('Should have the video updated', async function () { |
359 | this.timeout(60000) | 360 | this.timeout(60000) |
360 | 361 | ||
362 | await waitJobs([ server ]) | ||
363 | |||
361 | const video = await server.videos.get({ id: videoId }) | 364 | const video = await server.videos.get({ id: videoId }) |
362 | 365 | ||
363 | await completeVideoCheck(server, video, updateCheckAttributes()) | 366 | 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 () { | |||
27 | expect(command).to.includes('-r 25') | 27 | expect(command).to.includes('-r 25') |
28 | expect(command).to.includes('-level:v 3.1') | 28 | expect(command).to.includes('-level:v 3.1') |
29 | expect(command).to.includes('-g:v 50') | 29 | expect(command).to.includes('-g:v 50') |
30 | expect(command).to.includes(`-maxrate `) | 30 | expect(command).to.includes(`-maxrate:v `) |
31 | expect(command).to.includes(`-bufsize `) | 31 | expect(command).to.includes(`-bufsize:v `) |
32 | } | 32 | } |
33 | }) | 33 | }) |
34 | }) | 34 | }) |